rs-eda 0.1.5

rust EDA event-driven framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::engine::Engine;
use serde_json::Value;

pub trait PluginOptions {
    /**插件的名字 */
    fn name(&self) -> &str;
    /**插件的依赖,依赖值为插件名字 */
    fn deps(&self) -> Vec<&str>;
    /**获取插件数据 */
    fn get_data(&self) -> Option<Value>;
    /**插件的安装方法 */
    fn install(&mut self, engine: &mut Engine);
    /**插件的销毁方法 */
    fn dispose(&mut self, engine: &mut Engine);
}