Trait pmaapi::PluginTrait

source ·
pub trait PluginTrait: Send + Sync {
    // Required method
    fn register(&self) -> Plugin;

    // Provided methods
    fn load(&self) { ... }
    fn reload(&self) { ... }
    fn unload(&self) { ... }
}

Required Methods§

source

fn register(&self) -> Plugin

注册插件

Provided Methods§

source

fn load(&self)

加载插件

source

fn reload(&self)

重载插件

source

fn unload(&self)

卸载插件

Implementors§