pub trait Plugin: Any + Send + Sync {
    fn name(&self) -> &'static str;
    fn on_load<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

A main plugin trait.

Required Methods

Name of the plugin.

A function that will be executed when the plugin is loaded.

Implementors