Hook: Add traits which must be implemented for Hook
This commit is contained in:
parent
b9127381b8
commit
001c80b72d
1 changed files with 1 additions and 2 deletions
|
@ -5,8 +5,7 @@ use self::error::HookError;
|
|||
|
||||
pub type HookResult = Result<(), HookError>;
|
||||
|
||||
pub trait Hook {
|
||||
fn description(&self) -> &str;
|
||||
pub trait Hook : Eq + PartialEq + Debug + Display {
|
||||
fn dependencies(&self) -> Vec<Box<Hook>>;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue