Struct raft::Status[][src]

pub struct Status<'a> {
    pub id: u64,
    pub hs: HardState,
    pub ss: SoftState,
    pub applied: u64,
    pub progress: Option<&'a ProgressTracker>,
}
Expand description

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: Option<&'a ProgressTracker>

The progress towards catching up and applying logs.

Implementations

Gets a copy of the current raft status.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.