pub enum VolumesRequest {
Create {
name: String,
outgoing_directory: ServerEnd<DirectoryMarker>,
create_options: CreateOptions,
mount_options: MountOptions,
responder: VolumesCreateResponder,
},
Remove {
name: String,
responder: VolumesRemoveResponder,
},
}
Expand description
fuchsia.fs.startup.Volumes is only used for creating volumes. Other operations
(e.g. enumeration and deletion) 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: CreateOptions
mount_options: MountOptions
responder: VolumesCreateResponder
Remove
Permanently deletes a volume identified by name
. If the volume is mounted, this call will
fail.
Implementations§
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)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL