pub struct VolumeProxy { /* private fields */ }
Implementations§
Source§impl VolumeProxy
impl VolumeProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.fs.startup/Volume.
Sourcepub fn take_event_stream(&self) -> VolumeEventStream
pub fn take_event_stream(&self) -> VolumeEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn mount(
&self,
outgoing_directory: ServerEnd<DirectoryMarker>,
options: MountOptions,
) -> QueryResponseFut<VolumeMountResult, DefaultFuchsiaResourceDialect>
pub fn mount( &self, outgoing_directory: ServerEnd<DirectoryMarker>, options: MountOptions, ) -> QueryResponseFut<VolumeMountResult, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<VolumeCheckResult, DefaultFuchsiaResourceDialect>
pub fn check( &self, options: CheckOptions, ) -> QueryResponseFut<VolumeCheckResult, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<VolumeSetLimitResult, DefaultFuchsiaResourceDialect>
pub fn set_limit( &self, bytes: u64, ) -> QueryResponseFut<VolumeSetLimitResult, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<VolumeGetLimitResult, DefaultFuchsiaResourceDialect>
pub fn get_limit( &self, ) -> QueryResponseFut<VolumeGetLimitResult, DefaultFuchsiaResourceDialect>
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 Clone for VolumeProxy
impl Clone for VolumeProxy
Source§fn clone(&self) -> VolumeProxy
fn clone(&self) -> VolumeProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for VolumeProxy
impl Debug for VolumeProxy
Source§impl Proxy for VolumeProxy
impl Proxy for VolumeProxy
Source§type Protocol = VolumeMarker
type Protocol = VolumeMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Source§impl VolumeProxyInterface for VolumeProxy
impl VolumeProxyInterface for VolumeProxy
type MountResponseFut = QueryResponseFut<Result<(), i32>>
type CheckResponseFut = QueryResponseFut<Result<(), i32>>
type SetLimitResponseFut = QueryResponseFut<Result<(), i32>>
type GetLimitResponseFut = QueryResponseFut<Result<u64, i32>>
fn mount( &self, outgoing_directory: ServerEnd<DirectoryMarker>, options: MountOptions, ) -> Self::MountResponseFut
fn check(&self, options: CheckOptions) -> Self::CheckResponseFut
fn set_limit(&self, bytes: u64) -> Self::SetLimitResponseFut
fn get_limit(&self) -> Self::GetLimitResponseFut
Auto Trait Implementations§
impl Freeze for VolumeProxy
impl !RefUnwindSafe for VolumeProxy
impl Send for VolumeProxy
impl Sync for VolumeProxy
impl Unpin for VolumeProxy
impl !UnwindSafe for VolumeProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)