1 2 3 4 5 6 7 8 9 10 11 12 13 14
use async_trait::async_trait; use crate::process::Processor; #[async_trait] pub trait Module { fn id() -> &'static str; fn name() -> &'static str; fn help() -> &'static str; fn processors() -> Vec<Processor>; }