pub struct PluginManager {
pub plugins: Vec<PluginProxy>,
/* private fields */
}Fields§
§plugins: Vec<PluginProxy>Implementations§
Trait Implementations§
Source§impl Default for PluginManager
impl Default for PluginManager
Source§fn default() -> PluginManager
fn default() -> PluginManager
Returns the “default value” for a type. Read more
Source§impl Drop for PluginManager
impl Drop for PluginManager
Source§impl Plugin for PluginManager
impl Plugin for PluginManager
fn name(&self) -> &str
fn pre_command(&self, command: &str, context: &PluginContext<'_>) -> Result<()>
fn post_command(&self, command: &str, context: &PluginContext<'_>) -> Result<()>
fn on_load(&mut self, _context: &PluginContext<'_>)
fn on_unload(&mut self)
impl Send for PluginManager
impl Sync for PluginManager
Auto Trait Implementations§
impl Freeze for PluginManager
impl !RefUnwindSafe for PluginManager
impl Unpin for PluginManager
impl !UnwindSafe for PluginManager
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> 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