pub enum VirtioMemRequest {
ConfigureQueue {
queue: u16,
size: u16,
desc: u64,
avail: u64,
used: u64,
responder: VirtioMemConfigureQueueResponder,
},
NotifyQueue {
queue: u16,
control_handle: VirtioMemControlHandle,
},
Ready {
negotiated_features: u32,
responder: VirtioMemReadyResponder,
},
Start {
start_info: StartInfo,
region_addr: u64,
plugged_block_size: u64,
region_size: u64,
responder: VirtioMemStartResponder,
},
}
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: VirtioMemConfigureQueueResponder
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 mem device.
Implementations§
Source§impl VirtioMemRequest
impl VirtioMemRequest
pub fn into_configure_queue( self, ) -> Option<(u16, u16, u64, u64, u64, VirtioMemConfigureQueueResponder)>
pub fn into_notify_queue(self) -> Option<(u16, VirtioMemControlHandle)>
pub fn into_ready(self) -> Option<(u32, VirtioMemReadyResponder)>
pub fn into_start( self, ) -> Option<(StartInfo, u64, u64, u64, VirtioMemStartResponder)>
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 VirtioMemRequest
impl !RefUnwindSafe for VirtioMemRequest
impl Send for VirtioMemRequest
impl Sync for VirtioMemRequest
impl Unpin for VirtioMemRequest
impl !UnwindSafe for VirtioMemRequest
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