[][src]Struct raft::Status

pub struct Status {
    pub id: u64,
    pub hs: HardState,
    pub ss: SoftState,
    pub applied: u64,
    pub progress: FxHashMap<u64, Progress>,
    pub learner_progress: FxHashMap<u64, Progress>,
}

Represents the current status of the raft

Fields

id: u64

The ID of the current node.

hs: HardState

The hardstate of the raft, representing voted state.

ss: SoftState

The softstate of the raft, representing proposed state.

applied: u64

The index of the last entry to have been applied.

progress: FxHashMap<u64, Progress>

The progress towards catching up and applying logs.

learner_progress: FxHashMap<u64, Progress>

The progress of learners in catching up and applying logs.

Methods

impl Status[src]

pub fn new<T: Storage>(raft: &Raft<T>) -> Status[src]

Gets a copy of the current raft status.

Trait Implementations

impl Default for Status[src]

Auto Trait Implementations

impl Send for Status

impl Sync for Status

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]