Skip to main content

QuorumObserver

Trait QuorumObserver 

Source
pub trait QuorumObserver: Send + Sync {
    // Required methods
    fn on_quorum_lost(&self);
    fn on_quorum_regained(&self);
}
Expand description

Observer notified when the SBR runtime concludes this node has lost quorum (and later, when it is regained). Implementations must be cheap and non-blocking; the runtime fires these from tick.

on_quorum_lost fires exactly once on the loss transition; on_quorum_regained fires exactly once when the partition heals after a prior loss. See crate::SbrRuntime::with_observer.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§