pub type ServingFilesystem = ServingSingleVolumeFilesystem;
Aliased Type§
struct ServingFilesystem { /* private fields */ }
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.