Trait Plugin

Source
pub trait Plugin:
    Any
    + Send
    + Sync {
    // Required methods
    fn meta(&self) -> PluginMeta;
    fn on_load(&self);
    fn on_unload(&self);
}

Required Methods§

Source

fn meta(&self) -> PluginMeta

Returns the plugin’s metadata.

Source

fn on_load(&self)

Called when the plugin is loaded.

Source

fn on_unload(&self)

Called when the plugin is unloaded.

Implementors§