pub struct VolumeSynchronousProxy { /* private fields */ }Implementations§
Source§impl VolumeSynchronousProxy
 
impl VolumeSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
    &self,
    deadline: MonotonicInstant,
) -> Result<VolumeEvent, Error>
 
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<VolumeEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn mount(
    &self,
    outgoing_directory: ServerEnd<DirectoryMarker>,
    options: MountOptions,
    ___deadline: MonotonicInstant,
) -> Result<VolumeMountResult, Error>
 
pub fn mount( &self, outgoing_directory: ServerEnd<DirectoryMarker>, options: MountOptions, ___deadline: MonotonicInstant, ) -> Result<VolumeMountResult, Error>
Mounts the volume.  If the volume is encrypted, options.crypt should provide all key
access for the given volume.  outgoing_directory will contain the root and other services
exposed by the volume.  To lock the volume, call fuchsia.fs.Admin.Shutdown on the returned
handle.
Sourcepub fn check(
    &self,
    options: CheckOptions,
    ___deadline: MonotonicInstant,
) -> Result<VolumeCheckResult, Error>
 
pub fn check( &self, options: CheckOptions, ___deadline: MonotonicInstant, ) -> Result<VolumeCheckResult, Error>
Check the volume for consistency.  If the volume is encrypted, options.crypt should
provide all key access for the given volume.
Sourcepub fn set_limit(
    &self,
    bytes: u64,
    ___deadline: MonotonicInstant,
) -> Result<VolumeSetLimitResult, Error>
 
pub fn set_limit( &self, bytes: u64, ___deadline: MonotonicInstant, ) -> Result<VolumeSetLimitResult, Error>
Set the limit in bytes on the volume. Setting it lower than current usage is accepted but will prevent further increases.
Sourcepub fn get_limit(
    &self,
    ___deadline: MonotonicInstant,
) -> Result<VolumeGetLimitResult, Error>
 
pub fn get_limit( &self, ___deadline: MonotonicInstant, ) -> Result<VolumeGetLimitResult, Error>
Get the allocation limit for the volume. A return value of 0 indicates that there is no limit and the volume can be extended as long as there is available space on the device.
The volume may be larger than this limit if a smaller limit was applied after the volume had already grown to the current size.
The volume limit persists across reboots.
Trait Implementations§
Source§impl Debug for VolumeSynchronousProxy
 
impl Debug for VolumeSynchronousProxy
Source§impl From<Channel> for VolumeSynchronousProxy
Available on Fuchsia only. 
impl From<Channel> for VolumeSynchronousProxy
Source§impl From<VolumeSynchronousProxy> for Handle
Available on Fuchsia only. 
impl From<VolumeSynchronousProxy> for Handle
Source§fn from(value: VolumeSynchronousProxy) -> Self
 
fn from(value: VolumeSynchronousProxy) -> Self
Source§impl FromClient for VolumeSynchronousProxy
Available on Fuchsia only. 
impl FromClient for VolumeSynchronousProxy
Source§type Protocol = VolumeMarker
 
type Protocol = VolumeMarker
Source§fn from_client(value: ClientEnd<VolumeMarker>) -> Self
 
fn from_client(value: ClientEnd<VolumeMarker>) -> Self
Source§impl SynchronousProxy for VolumeSynchronousProxy
Available on Fuchsia only. 
impl SynchronousProxy for VolumeSynchronousProxy
Source§type Proxy = VolumeProxy
 
type Proxy = VolumeProxy
Source§type Protocol = VolumeMarker
 
type Protocol = VolumeMarker
Proxy controls.