pub enum StarnixVolumeProviderRequest {
Mount {
crypt: ClientEnd<CryptMarker>,
exposed_dir: ServerEnd<DirectoryMarker>,
responder: StarnixVolumeProviderMountResponder,
},
Create {
crypt: ClientEnd<CryptMarker>,
exposed_dir: ServerEnd<DirectoryMarker>,
responder: StarnixVolumeProviderCreateResponder,
},
Unmount {
responder: StarnixVolumeProviderUnmountResponder,
},
}
Expand description
Provides access to the volume which will be used by Starnix to store its data.
Variants§
Mount
Mounts the main starnix volume using crypt
. exposed_dir
will be connected to the
exposed directory of the mounted starnix volume. Silently creates the volume if it does
not already exist.
Fields
§
crypt: ClientEnd<CryptMarker>
§
exposed_dir: ServerEnd<DirectoryMarker>
§
responder: StarnixVolumeProviderMountResponder
Create
Creates and mounts the main starnix volume using crypt
. If the volume already exists,
unmount and delete the volume before creating the new one. exposed_dir
will be connected
to the exposed directory of the mounted starnix volume.
Fields
§
crypt: ClientEnd<CryptMarker>
§
exposed_dir: ServerEnd<DirectoryMarker>
§
responder: StarnixVolumeProviderCreateResponder
Unmount
Shuts down the main starnix volume. Fails if the starnix volume was not mounted.
Fields
§
responder: StarnixVolumeProviderUnmountResponder
Implementations§
Source§impl StarnixVolumeProviderRequest
impl StarnixVolumeProviderRequest
pub fn into_mount( self, ) -> Option<(ClientEnd<CryptMarker>, ServerEnd<DirectoryMarker>, StarnixVolumeProviderMountResponder)>
pub fn into_create( self, ) -> Option<(ClientEnd<CryptMarker>, ServerEnd<DirectoryMarker>, StarnixVolumeProviderCreateResponder)>
pub fn into_unmount(self) -> Option<StarnixVolumeProviderUnmountResponder>
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 StarnixVolumeProviderRequest
impl !RefUnwindSafe for StarnixVolumeProviderRequest
impl Send for StarnixVolumeProviderRequest
impl Sync for StarnixVolumeProviderRequest
impl Unpin for StarnixVolumeProviderRequest
impl !UnwindSafe for StarnixVolumeProviderRequest
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