pub enum VirtioVsockRequest {
ConfigureQueue {
queue: u16,
size: u16,
desc: u64,
avail: u64,
used: u64,
responder: VirtioVsockConfigureQueueResponder,
},
NotifyQueue {
queue: u16,
control_handle: VirtioVsockControlHandle,
},
Ready {
negotiated_features: u32,
responder: VirtioVsockReadyResponder,
},
Start {
start_info: StartInfo,
guest_cid: u32,
listeners: Vec<Listener>,
responder: VirtioVsockStartResponder,
},
}
Variants§
ConfigureQueue
Configure a queue
for the device. This specifies the size
and the
guest physical addresses of the queue: desc
, avail
, and used
.
Fields
§
responder: VirtioVsockConfigureQueueResponder
NotifyQueue
Notify a queue
for the device. Primarily used for black-box testing.
Ready
Ready a device. This provides the set of negotiated_features
that the
driver and device have agreed upon.
Start
Start the vsock device, setting the guest_cid to the provided value.
Returns:
- ZX_OK if device startup succeeded
- ZX_ERR_INVALID_ARGS if guest_cid is a reserved value
- Any errors returned from fuchsia.virtualization.HostVsockEndpoint::Listen
Implementations§
Source§impl VirtioVsockRequest
impl VirtioVsockRequest
pub fn into_configure_queue( self, ) -> Option<(u16, u16, u64, u64, u64, VirtioVsockConfigureQueueResponder)>
pub fn into_notify_queue(self) -> Option<(u16, VirtioVsockControlHandle)>
pub fn into_ready(self) -> Option<(u32, VirtioVsockReadyResponder)>
pub fn into_start( self, ) -> Option<(StartInfo, u32, Vec<Listener>, VirtioVsockStartResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VirtioVsockRequest
impl !RefUnwindSafe for VirtioVsockRequest
impl Send for VirtioVsockRequest
impl Sync for VirtioVsockRequest
impl Unpin for VirtioVsockRequest
impl !UnwindSafe for VirtioVsockRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more