pub enum VirtioWaylandRequest {
ConfigureQueue {
queue: u16,
size: u16,
desc: u64,
avail: u64,
used: u64,
responder: VirtioWaylandConfigureQueueResponder,
},
NotifyQueue {
queue: u16,
control_handle: VirtioWaylandControlHandle,
},
Ready {
negotiated_features: u32,
responder: VirtioWaylandReadyResponder,
},
Start {
start_info: StartInfo,
vmar: Vmar,
sysmem_allocator: ClientEnd<AllocatorMarker>,
scenic_allocator: ClientEnd<AllocatorMarker>,
responder: VirtioWaylandStartResponder,
},
StartWithWaylandServer_ {
start_info: StartInfo,
vmar: Vmar,
wayland_server: Option<ClientEnd<Server_Marker>>,
sysmem_allocator: ClientEnd<AllocatorMarker>,
scenic_allocator: ClientEnd<AllocatorMarker>,
responder: VirtioWaylandStartWithWaylandServer_Responder,
},
GetImporter {
importer: ServerEnd<VirtioWaylandImporterMarker>,
control_handle: VirtioWaylandControlHandle,
},
}
Variants§
ConfigureQueue
Fields
§
responder: VirtioWaylandConfigureQueueResponder
Configure a queue
for the device. This specifies the size
and the
guest physical addresses of the queue: desc
, avail
, and used
.
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
Fields
§
vmar: Vmar
§
sysmem_allocator: ClientEnd<AllocatorMarker>
§
scenic_allocator: ClientEnd<AllocatorMarker>
§
responder: VirtioWaylandStartResponder
Start the wayland device using the built-in wayland server.
StartWithWaylandServer_
Fields
§
vmar: Vmar
§
sysmem_allocator: ClientEnd<AllocatorMarker>
§
scenic_allocator: ClientEnd<AllocatorMarker>
Start the wayland device using the provided wayland server.
GetImporter
Implementations§
source§impl VirtioWaylandRequest
impl VirtioWaylandRequest
pub fn into_configure_queue( self ) -> Option<(u16, u16, u64, u64, u64, VirtioWaylandConfigureQueueResponder)>
pub fn into_notify_queue(self) -> Option<(u16, VirtioWaylandControlHandle)>
pub fn into_ready(self) -> Option<(u32, VirtioWaylandReadyResponder)>
pub fn into_start( self ) -> Option<(StartInfo, Vmar, ClientEnd<AllocatorMarker>, ClientEnd<AllocatorMarker>, VirtioWaylandStartResponder)>
pub fn into_start_with_wayland_server_( self ) -> Option<(StartInfo, Vmar, Option<ClientEnd<Server_Marker>>, ClientEnd<AllocatorMarker>, ClientEnd<AllocatorMarker>, VirtioWaylandStartWithWaylandServer_Responder)>
pub fn into_get_importer( self ) -> Option<(ServerEnd<VirtioWaylandImporterMarker>, VirtioWaylandControlHandle)>
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 !RefUnwindSafe for VirtioWaylandRequest
impl Send for VirtioWaylandRequest
impl Sync for VirtioWaylandRequest
impl Unpin for VirtioWaylandRequest
impl !UnwindSafe for VirtioWaylandRequest
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