Hook: Add traits which must be implemented for Hook

This commit is contained in:
Matthias Beyer 2016-02-16 12:21:37 +01:00
parent b9127381b8
commit 001c80b72d
1 changed files with 1 additions and 2 deletions

View File

@ -5,8 +5,7 @@ use self::error::HookError;
pub type HookResult = Result<(), HookError>; pub type HookResult = Result<(), HookError>;
pub trait Hook { pub trait Hook : Eq + PartialEq + Debug + Display {
fn description(&self) -> &str;
fn dependencies(&self) -> Vec<Box<Hook>>; fn dependencies(&self) -> Vec<Box<Hook>>;
} }