pub enum FileBackedVolumeProviderRequest {
Open {
parent_directory_token: Handle,
name: String,
server_end: ServerEnd<VolumeMarker>,
control_handle: FileBackedVolumeProviderControlHandle,
},
}
Expand description
A protocol to serve the Volume protocol on a file-backed device.
Variants§
Open
Opens a file as a block device and starts serving block requests.
name
must refer to an existing file in the directory represented by
parent_directory_token
.
The block size of the device will match the underlying filesystem’s block size. If the file’s size is not a multiple of the block size, the apparent size of the device will be rounded down.
parent_directory_token
is a token obtained via fuchsia.io.Directory/GetToken
. The
directory connection must have the MODIFY_DIRECTORY
right.
Errors will be sent as an epitaph on server_end
.
Implementations§
Source§impl FileBackedVolumeProviderRequest
impl FileBackedVolumeProviderRequest
pub fn into_open( self, ) -> Option<(Handle, String, ServerEnd<VolumeMarker>, FileBackedVolumeProviderControlHandle)>
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 FileBackedVolumeProviderRequest
impl !RefUnwindSafe for FileBackedVolumeProviderRequest
impl Send for FileBackedVolumeProviderRequest
impl Sync for FileBackedVolumeProviderRequest
impl Unpin for FileBackedVolumeProviderRequest
impl !UnwindSafe for FileBackedVolumeProviderRequest
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