Trait Manager
Source pub trait Manager<'a, O: Send + Sync, I: Info>: Send + Sync {
// Required methods
fn format(&self) -> &'static str;
fn register_plugin(
&mut self,
_context: RegisterPluginContext<'_>,
) -> ManagerResult<I>;
// Provided methods
fn register_manager(&mut self) -> ManagerResult<()> { ... }
fn unregister_manager(&mut self) -> ManagerResult<()> { ... }
fn unregister_plugin(
&mut self,
_plugin: &Plugin<'a, O, I>,
) -> ManagerResult<()> { ... }
fn load_plugin(
&mut self,
_context: LoadPluginContext<'a, '_, O, I>,
_api: Api<O, I>,
) -> ManagerResult<()> { ... }
fn unload_plugin(&mut self, _plugin: &Plugin<'a, O, I>) -> ManagerResult<()> { ... }
}
Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.