pub enum VmoRequest {
CreateVmo {
size: u64,
options: VmoOptions,
handle: NewHandleId,
responder: VmoCreateVmoResponder,
},
ReadVmo {
handle: HandleId,
offset: u64,
size: u64,
responder: VmoReadVmoResponder,
},
WriteVmo {
handle: HandleId,
offset: u64,
data: Vec<u8>,
responder: VmoWriteVmoResponder,
},
GetVmoSize {
handle: HandleId,
responder: VmoGetVmoSizeResponder,
},
SetVmoSize {
handle: HandleId,
size: u64,
responder: VmoSetVmoSizeResponder,
},
GetVmoStreamSize {
handle: HandleId,
responder: VmoGetVmoStreamSizeResponder,
},
SetVmoStreamSize {
handle: HandleId,
size: u64,
responder: VmoSetVmoStreamSizeResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: VmoControlHandle,
method_type: MethodType,
},
}Expand description
FDomain operations on VMOs (Virtual Memory Objects).
Variants§
CreateVmo
Create a new VMO in this FDomain.
ReadVmo
Read data from a VMO.
WriteVmo
Write data to a VMO.
GetVmoSize
Get the size of a VMO in bytes.
SetVmoSize
Set the size of a VMO in bytes.
GetVmoStreamSize
Get the stream size of a VMO in bytes.
SetVmoStreamSize
Set the stream size of a VMO in bytes.
#[non_exhaustive]_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: VmoControlHandle§
method_type: MethodTypeImplementations§
Source§impl VmoRequest
impl VmoRequest
pub fn into_create_vmo( self, ) -> Option<(u64, VmoOptions, NewHandleId, VmoCreateVmoResponder)>
pub fn into_read_vmo(self) -> Option<(HandleId, u64, u64, VmoReadVmoResponder)>
pub fn into_write_vmo( self, ) -> Option<(HandleId, u64, Vec<u8>, VmoWriteVmoResponder)>
pub fn into_get_vmo_size(self) -> Option<(HandleId, VmoGetVmoSizeResponder)>
pub fn into_set_vmo_size( self, ) -> Option<(HandleId, u64, VmoSetVmoSizeResponder)>
pub fn into_get_vmo_stream_size( self, ) -> Option<(HandleId, VmoGetVmoStreamSizeResponder)>
pub fn into_set_vmo_stream_size( self, ) -> Option<(HandleId, u64, VmoSetVmoStreamSizeResponder)>
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 VmoRequest
impl !UnwindSafe for VmoRequest
impl Freeze for VmoRequest
impl Send for VmoRequest
impl Sync for VmoRequest
impl Unpin for VmoRequest
impl UnsafeUnpin for VmoRequest
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