pub trait Strategy {
    // Required method
    fn decide(&self, res: &Error) -> Action;
}
Expand description

Strategy deciding which Action should be performed on an encountered prometheus::Error inside metrics::Recorder methods.

Required Methods§

source

fn decide(&self, res: &Error) -> Action

Inspects the encountered prometheus::Error and returns the Action to be performed.

Implementors§