Struct raft::JointConfig [−][src]
pub struct JointConfig { /* fields omitted */ }
Expand description
A configuration of two groups of (possibly overlapping) majority configurations. Decisions require the support of both majorities.
Implementations
Creates a new configuration using the given IDs.
Creates an empty configuration with given capacity.
Returns the largest committed index for the given joint quorum. An index is jointly committed if it is committed in both constituent majorities.
The bool flag indicates whether the index is computed by group commit algorithm successfully. It’s true only when both majorities use group commit.
Takes a mapping of voters to yes/no (true/false) votes and returns a result indicating whether the vote is pending, lost, or won. A joint quorum requires both majority quorums to vote in favor.
Returns true if (and only if) there is only one voting member (i.e. the leader) in the current configuration.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V