pub enum RamdiskControllerRequest {
Create {
block_size: u64,
block_count: u64,
type_guid: Option<Box<Guid>>,
responder: RamdiskControllerCreateResponder,
},
CreateFromVmo {
vmo: Vmo,
responder: RamdiskControllerCreateFromVmoResponder,
},
CreateFromVmoWithParams {
vmo: Vmo,
block_size: u64,
type_guid: Option<Box<Guid>>,
responder: RamdiskControllerCreateFromVmoWithParamsResponder,
},
}
Variants§
Create
Initializes a new Ramdisk instance with the provided block size and block count.
Takes an optional type_guid
, which may be queried from the ramdisk instance.
Fields
§
responder: RamdiskControllerCreateResponder
CreateFromVmo
Initializes a new Ramdisk instance from a VMO. Uses a block size of PAGE_SIZE
,
and derives the block count from the size of the VMO.
CreateFromVmoWithParams
Same as CreateFromVmo, but with the given block_size
and optional type_guid
. If
block_size
is zero, PAGE_SIZE
will be used as block_size
.
Implementations§
Source§impl RamdiskControllerRequest
impl RamdiskControllerRequest
pub fn into_create( self, ) -> Option<(u64, u64, Option<Box<Guid>>, RamdiskControllerCreateResponder)>
pub fn into_create_from_vmo( self, ) -> Option<(Vmo, RamdiskControllerCreateFromVmoResponder)>
pub fn into_create_from_vmo_with_params( self, ) -> Option<(Vmo, u64, Option<Box<Guid>>, RamdiskControllerCreateFromVmoWithParamsResponder)>
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 RamdiskControllerRequest
impl !RefUnwindSafe for RamdiskControllerRequest
impl Send for RamdiskControllerRequest
impl Sync for RamdiskControllerRequest
impl Unpin for RamdiskControllerRequest
impl !UnwindSafe for RamdiskControllerRequest
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