pub struct ModuleExportRegistry { /* private fields */ }Expand description
Registry of all extension modules.
Created at startup and populated from loaded plugin capabilities.
Implementations§
Source§impl ModuleExportRegistry
impl ModuleExportRegistry
Sourcepub fn register(&mut self, module: ModuleExports)
pub fn register(&mut self, module: ModuleExports)
Register a extension module.
Sourcepub fn get(&self, name: &str) -> Option<&ModuleExports>
pub fn get(&self, name: &str) -> Option<&ModuleExports>
Get a module by name.
Sourcepub fn module_names(&self) -> Vec<&str>
pub fn module_names(&self) -> Vec<&str>
List all registered module names.
Sourcepub fn modules(&self) -> &HashMap<String, ModuleExports>
pub fn modules(&self) -> &HashMap<String, ModuleExports>
Get all registered modules.
Trait Implementations§
Source§impl Debug for ModuleExportRegistry
impl Debug for ModuleExportRegistry
Source§impl Default for ModuleExportRegistry
impl Default for ModuleExportRegistry
Source§fn default() -> ModuleExportRegistry
fn default() -> ModuleExportRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModuleExportRegistry
impl !RefUnwindSafe for ModuleExportRegistry
impl Send for ModuleExportRegistry
impl Sync for ModuleExportRegistry
impl Unpin for ModuleExportRegistry
impl UnsafeUnpin for ModuleExportRegistry
impl !UnwindSafe for ModuleExportRegistry
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more