Trait conserve::monitor::Monitor

source ·
pub trait Monitor: Send + Sync + 'static {
    // Required methods
    fn count(&self, counter: Counter, increment: usize);
    fn set_counter(&self, counter: Counter, value: usize);
    fn problem(&self, problem: Problem);
    fn start_task(&self, name: String) -> Task;
}

Required Methods§

source

fn count(&self, counter: Counter, increment: usize)

Notify that a counter increased by a given amount.

source

fn set_counter(&self, counter: Counter, value: usize)

Set the absolute value of a counter.

source

fn problem(&self, problem: Problem)

Notify that a problem occurred.

source

fn start_task(&self, name: String) -> Task

Implementors§