imag/src/module/mod.rs

18 lines
357 B
Rust
Raw Normal View History

2015-10-19 15:54:32 +00:00
pub use runtime::Runtime;
pub use std::error::Error;
pub use std::fs::Path;
pub use module::todo::TodoModule;
pub trait Module {
2015-10-19 16:09:39 +00:00
fn new(&rt : Runtime) -> Self;
fn callnames() -> &'static [str];
fn name(&self) -> &'static str;
2015-10-19 15:54:32 +00:00
fn execute(&self, &rt : Runtime) -> Option<Error>;
fn shutdown(&self, &rt : Runtime) -> Option<Error>;
}