pub enum VirtioMagmaRequest {
ConfigureQueue {
queue: u16,
size: u16,
desc: u64,
avail: u64,
used: u64,
responder: VirtioMagmaConfigureQueueResponder,
},
NotifyQueue {
queue: u16,
control_handle: VirtioMagmaControlHandle,
},
Ready {
negotiated_features: u32,
responder: VirtioMagmaReadyResponder,
},
Start {
start_info: StartInfo,
vmar: Vmar,
wayland_importer: Option<ClientEnd<VirtioWaylandImporterMarker>>,
responder: VirtioMagmaStartResponder,
},
}
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: VirtioMagmaConfigureQueueResponder
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 magma device.
Fields
§
vmar: Vmar
§
wayland_importer: Option<ClientEnd<VirtioWaylandImporterMarker>>
§
responder: VirtioMagmaStartResponder
Implementations§
Source§impl VirtioMagmaRequest
impl VirtioMagmaRequest
pub fn into_configure_queue( self, ) -> Option<(u16, u16, u64, u64, u64, VirtioMagmaConfigureQueueResponder)>
pub fn into_notify_queue(self) -> Option<(u16, VirtioMagmaControlHandle)>
pub fn into_ready(self) -> Option<(u32, VirtioMagmaReadyResponder)>
pub fn into_start( self, ) -> Option<(StartInfo, Vmar, Option<ClientEnd<VirtioWaylandImporterMarker>>, VirtioMagmaStartResponder)>
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 VirtioMagmaRequest
impl !RefUnwindSafe for VirtioMagmaRequest
impl Send for VirtioMagmaRequest
impl Sync for VirtioMagmaRequest
impl Unpin for VirtioMagmaRequest
impl !UnwindSafe for VirtioMagmaRequest
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