pub struct PluginManager { /* private fields */ }Implementations§
Source§impl PluginManager
impl PluginManager
pub fn new() -> Self
Sourcepub fn apply_plugin(&mut self, plugin: Box<dyn Plugin>)
pub fn apply_plugin(&mut self, plugin: Box<dyn Plugin>)
Add a plugin to the manager.
Sourcepub async fn init_plugins(&mut self)
pub async fn init_plugins(&mut self)
Initialize all plugins.
Auto Trait Implementations§
impl Freeze for PluginManager
impl !RefUnwindSafe for PluginManager
impl Send for PluginManager
impl Sync for PluginManager
impl Unpin for PluginManager
impl !UnwindSafe for PluginManager
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more