openraft 0.9.22

Advanced Raft consensus
Documentation
//! A quorum is a set of nodes a vote request or append-entries request has to contact to.
//! The most common quorum is **majority**.
//! A quorum set is a collection of quorums, e.g. the quorum set of majority of `{a,b,c}` is `{a,b},
//! {b,c}, {a,c}`.

mod coherent;
mod coherent_impl;
mod joint;
mod joint_impl;
mod quorum_set;
mod quorum_set_impl;

#[cfg(feature = "bench")]
#[cfg(test)]
mod bench;

#[cfg(test)]
mod coherent_test;
#[cfg(test)]
mod quorum_set_test;

pub(crate) use coherent::Coherent;
pub(crate) use coherent::FindCoherent;
pub(crate) use joint::AsJoint;
pub(crate) use joint::Joint;
pub(crate) use quorum_set::QuorumSet;