pub trait Notifier {
// Required method
fn on_event(&self, event: NotifierEvent<'_>);
// Provided methods
fn call(&self, command: &Command) { ... }
fn start(&self, name: &str) { ... }
fn complete(&self, name: &str) { ... }
fn error(&self, errors: &[RuntimeError]) { ... }
fn dependency(&self, parent: &str, name: &str) { ... }
fn block_on(&self, parent: &str, name: &str) { ... }
}Expand description
Trait to hook into runtime events, usually for logging.
Notifiers should only implement on_event.
Other methods are convienience and delegate to on_event.