Hook: Must provide name, gets reference to configuration

This commit is contained in:
Matthias Beyer 2016-03-05 18:07:54 +01:00
parent 9961f64ce6
commit 6dae03d731

View file

@ -14,6 +14,7 @@ pub mod result;
use hook::accessor::HookDataAccessorProvider; use hook::accessor::HookDataAccessorProvider;
pub trait Hook : HookDataAccessorProvider + Debug + Send + Sync { pub trait Hook : HookDataAccessorProvider + Debug + Send + Sync {
fn set_config(&mut self, cfg: Value); fn name(&self) -> &'static str;
fn set_config(&mut self, cfg: &Value);
} }