Manager

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<()> { ... }
}

Required Methods§

Source

fn format(&self) -> &'static str

Source

fn register_plugin( &mut self, _context: RegisterPluginContext<'_>, ) -> ManagerResult<I>

Provided Methods§

Source

fn register_manager(&mut self) -> ManagerResult<()>

Source

fn unregister_manager(&mut self) -> ManagerResult<()>

Source

fn unregister_plugin(&mut self, _plugin: &Plugin<'a, O, I>) -> ManagerResult<()>

Source

fn load_plugin( &mut self, _context: LoadPluginContext<'a, '_, O, I>, _api: Api<O, I>, ) -> ManagerResult<()>

Source

fn unload_plugin(&mut self, _plugin: &Plugin<'a, O, I>) -> ManagerResult<()>

Trait Implementations§

Source§

impl<'a, O, OO, I, II> PartialEq<Box<dyn Manager<'a, O, I>>> for dyn Manager<'a, OO, II>
where O: Send + Sync, OO: Send + Sync, I: Info, II: Info,

Source§

fn eq(&self, other: &Box<dyn Manager<'a, O, I>>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a, O, OO, I, II> PartialEq<dyn Manager<'a, OO, II>> for Box<dyn Manager<'a, O, I>>
where O: Send + Sync, OO: Send + Sync, I: Info, II: Info,

Source§

fn eq(&self, other: &dyn Manager<'a, OO, II>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a, O: Send + Sync, I: Info> PartialEq for dyn Manager<'a, O, I>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Implementors§