pub enum ControllerRequest {
Mount {
device: ClientEnd<ControllerMarker>,
name: String,
options: MountOptions,
responder: ControllerMountResponder,
},
Unmount {
name: String,
responder: ControllerUnmountResponder,
},
Format {
device: ClientEnd<ControllerMarker>,
name: String,
options: FormatOptions,
responder: ControllerFormatResponder,
},
Check {
device: ClientEnd<ControllerMarker>,
name: String,
responder: ControllerCheckResponder,
},
}
Variants§
Mount
Mounts a filesystem on a block device.
Fields
§
device: ClientEnd<ControllerMarker>
§
options: MountOptions
§
responder: ControllerMountResponder
Unmount
Unmounts a previously mounted filesystem.
Format
Formats a block device with a particular filesystem format
Fields
§
device: ClientEnd<ControllerMarker>
§
options: FormatOptions
§
responder: ControllerFormatResponder
Check
Checks the consistency of the filesystem formatted on the block device
Implementations§
Source§impl ControllerRequest
impl ControllerRequest
pub fn into_mount( self, ) -> Option<(ClientEnd<ControllerMarker>, String, MountOptions, ControllerMountResponder)>
pub fn into_unmount(self) -> Option<(String, ControllerUnmountResponder)>
pub fn into_format( self, ) -> Option<(ClientEnd<ControllerMarker>, String, FormatOptions, ControllerFormatResponder)>
pub fn into_check( self, ) -> Option<(ClientEnd<ControllerMarker>, String, ControllerCheckResponder)>
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 ControllerRequest
impl !RefUnwindSafe for ControllerRequest
impl Send for ControllerRequest
impl Sync for ControllerRequest
impl Unpin for ControllerRequest
impl !UnwindSafe for ControllerRequest
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