pub struct FileSystemPluginRegistry<Context> { /* private fields */ }Implementations§
Source§impl<Context> FileSystemPluginRegistry<Context>
impl<Context> FileSystemPluginRegistry<Context>
pub fn new() -> Self
pub fn register( &mut self, factory: impl FileSystemPluginFactory<Context> + 'static, ) -> Result<(), PluginError>
pub fn open( &self, plugin_id: &str, request: OpenFileSystemPluginRequest<'_, Context>, ) -> Result<Box<dyn MountedFileSystem>, PluginError>
pub fn plugin_ids(&self) -> Vec<String>
Trait Implementations§
Auto Trait Implementations§
impl<Context> !RefUnwindSafe for FileSystemPluginRegistry<Context>
impl<Context> !UnwindSafe for FileSystemPluginRegistry<Context>
impl<Context> Freeze for FileSystemPluginRegistry<Context>
impl<Context> Send for FileSystemPluginRegistry<Context>
impl<Context> Sync for FileSystemPluginRegistry<Context>
impl<Context> Unpin for FileSystemPluginRegistry<Context>
impl<Context> UnsafeUnpin for FileSystemPluginRegistry<Context>
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