pub enum VolumesRequest {
    Create {
        name: String,
        outgoing_directory: ServerEnd<DirectoryMarker>,
        create_options: CreateOptions,
        mount_options: MountOptions,
        responder: VolumesCreateResponder,
    },
    Remove {
        name: String,
        responder: VolumesRemoveResponder,
    },
    GetInfo {
        responder: VolumesGetInfoResponder,
    },
}Expand description
fuchsia.fs.startup.Volumes is used for creating and deleting volumes, and getting some general
information about the manager.  Other operations (e.g. enumeration and access) are serviced by
the volumes directory offered by filesystems in their export root.  Volumes appear as files
within this directory, and these files should also speak the fuchsia.fs.startup.Volume
protocol.
mount_options affects how the resulting volume is mounted. For encrypted volumes, the crypt
setting in the mount_options is also used when creating the volume. outgoing_directory will
be connected to the root directory of the volume.
Variants§
Create
Creates and mounts a new volume identified by name. mount_options affects how the
resulting volume is mounted. For encrypted volumes, mount_options.crypt is also used when
creating the volume. outgoing_directory will be connected to the root directory of the
volume.
Fields
outgoing_directory: ServerEnd<DirectoryMarker>create_options: CreateOptionsmount_options: MountOptionsresponder: VolumesCreateResponderRemove
Permanently deletes a volume identified by name.  If the volume is mounted, this call will
fail.
GetInfo
Get general info about the volume manager.
Fields
responder: VolumesGetInfoResponderImplementations§
Source§impl VolumesRequest
 
impl VolumesRequest
pub fn into_create( self, ) -> Option<(String, ServerEnd<DirectoryMarker>, CreateOptions, MountOptions, VolumesCreateResponder)>
pub fn into_remove(self) -> Option<(String, VolumesRemoveResponder)>
pub fn into_get_info(self) -> Option<VolumesGetInfoResponder>
Sourcepub fn method_name(&self) -> &'static str
 
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL