imag/src/module/mod.rs

22 lines
418 B
Rust
Raw Normal View History

use std::collections::HashMap;
2015-10-24 15:46:01 +00:00
use std::error::Error;
use std::fmt::{Debug, Display, Formatter};
2015-10-24 16:40:40 +00:00
use std::fmt::Result as FMTResult;
use std::result::Result;
2015-10-19 15:54:32 +00:00
2015-12-05 00:23:06 +00:00
use clap::ArgMatches;
use runtime::Runtime;
2015-10-25 18:56:04 +00:00
pub mod bm;
pub mod helpers;
2015-10-19 15:54:32 +00:00
2015-12-29 15:55:28 +00:00
/**
* Module interface, each module has to implement this.
*/
2015-12-20 12:26:14 +00:00
pub trait Module<'a> : Debug {
2015-12-20 11:43:57 +00:00
fn exec(&self, matches: &ArgMatches) -> bool;
2015-12-20 12:26:14 +00:00
fn name(&self) -> &'static str;
2015-10-19 15:54:32 +00:00
}