pub struct FileSystemRegistry { /* private fields */ }Expand description
Registry of filesystem providers.
Implementations§
Source§impl FileSystemRegistry
impl FileSystemRegistry
Sourcepub fn register<P>(&mut self, provider: P) -> FsResult<()>where
P: ServiceProvider<FileSystemSpec> + 'static,
pub fn register<P>(&mut self, provider: P) -> FsResult<()>where
P: ServiceProvider<FileSystemSpec> + 'static,
Sourcepub fn resource(&self, uri: &FsUri) -> FsResult<FileResource>
pub fn resource(&self, uri: &FsUri) -> FsResult<FileResource>
Sourcepub fn provider_names(&self) -> Vec<&str>
pub fn provider_names(&self) -> Vec<&str>
Trait Implementations§
Source§impl Debug for FileSystemRegistry
impl Debug for FileSystemRegistry
Source§impl Default for FileSystemRegistry
impl Default for FileSystemRegistry
Source§fn default() -> FileSystemRegistry
fn default() -> FileSystemRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileSystemRegistry
impl !RefUnwindSafe for FileSystemRegistry
impl Send for FileSystemRegistry
impl Sync for FileSystemRegistry
impl Unpin for FileSystemRegistry
impl UnsafeUnpin for FileSystemRegistry
impl !UnwindSafe for FileSystemRegistry
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
Source§impl<T> IntoValueDefault<T> for T
impl<T> IntoValueDefault<T> for T
Source§fn into_value_default(self) -> T
fn into_value_default(self) -> T
Converts this argument into the default value.