Struct raft::storage::RaftState [−][src]
Expand description
Holds both the hard state (commit index, vote leader, term) and the configuration state (Current node IDs)
Fields
hard_state: HardState
Contains the last meta information including commit index, the vote leader, and the vote term.
conf_state: ConfState
Records the current node IDs like [1, 2, 3]
in the cluster. Every Raft node must have a
unique ID in the cluster;
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RaftState
impl UnwindSafe for RaftState
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V