Trait failsafe::Instrument

source ·
pub trait Instrument {
    fn on_call_rejected(&self);
    fn on_open(&self);
    fn on_half_open(&self);
    fn on_closed(&self);
}
Expand description

Consumes the state machine events. May used for metrics and/or logs.

Required Methods

Calls when state machine reject a call.

Calls when the circuit breaker become to open state.

Calls when the circuit breaker become to half open state.

Calls when the circuit breaker become to closed state.

Implementations on Foreign Types

An instrumentation which does noting.

Implementors