pub struct ServingSingleVolumeFilesystem { /* private fields */ }
Expand description
Asynchronously manages a serving filesystem. Created from Filesystem::serve()
.
Implementations§
Source§impl ServingSingleVolumeFilesystem
impl ServingSingleVolumeFilesystem
Sourcepub fn exposed_dir(&self) -> &DirectoryProxy
pub fn exposed_dir(&self) -> &DirectoryProxy
Returns a proxy to the exposed directory of the serving filesystem.
Sourcepub fn root(&self) -> &DirectoryProxy
pub fn root(&self) -> &DirectoryProxy
Returns a proxy to the root directory of the serving filesystem.
pub fn bound_path(&self) -> Option<&str>
Sourcepub async fn query(&self) -> Result<Box<FilesystemInfo>, QueryError>
pub async fn query(&self) -> Result<Box<FilesystemInfo>, QueryError>
Sourcepub fn take_exposed_dir(self) -> DirectoryProxy
pub fn take_exposed_dir(self) -> DirectoryProxy
Take the exposed dir from this filesystem instance, dropping the management struct without shutting the filesystem down. This leaves the caller with the responsibility of shutting down the filesystem, and the filesystem component if necessary.
Sourcepub async fn shutdown(self) -> Result<(), ShutdownError>
pub async fn shutdown(self) -> Result<(), ShutdownError>
Attempts to shutdown the filesystem using the
fidl_fuchsia_fs::AdminProxy::shutdown()
FIDL method and waiting for the filesystem
process to terminate.
§Errors
Returns Err
if the shutdown failed or the filesystem process did not terminate.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServingSingleVolumeFilesystem
impl !RefUnwindSafe for ServingSingleVolumeFilesystem
impl Send for ServingSingleVolumeFilesystem
impl Sync for ServingSingleVolumeFilesystem
impl Unpin for ServingSingleVolumeFilesystem
impl !UnwindSafe for ServingSingleVolumeFilesystem
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