1 2 3 4 5 6 7 8 9
use toml::Value; pub trait Config: Send + Sync + 'static { /// 配置文件名称 fn name(&self) -> &'static str; /// 配置项 fn config(&self) -> Value; }