pub trait Plugin: 'static {
// Required methods
fn name(&mut self) -> String;
fn description(&mut self) -> String;
fn register_hooks(&mut self) -> Option<Vec<IrcEvent>>;
fn register_bots(&mut self) -> Option<Vec<Bot>>;
// Provided method
unsafe fn get_type_id(&self) -> TypeId { ... }
}Required Methods§
fn name(&mut self) -> String
fn description(&mut self) -> String
fn register_hooks(&mut self) -> Option<Vec<IrcEvent>>
fn register_bots(&mut self) -> Option<Vec<Bot>>
Provided Methods§
unsafe fn get_type_id(&self) -> TypeId
Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".