Trait august_build::runtime::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§