august_build::runtime

Trait Notifier

Source
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.

Required Methods§

Source

fn on_event(&self, event: NotifierEvent<'_>)

Provided Methods§

Source

fn call(&self, command: &Command)

Source

fn start(&self, name: &str)

Source

fn complete(&self, name: &str)

Source

fn error(&self, errors: &[RuntimeError])

Source

fn dependency(&self, parent: &str, name: &str)

Source

fn block_on(&self, parent: &str, name: &str)

Implementors§