Struct raft::raw_node::LightReady[][src]

pub struct LightReady { /* fields omitted */ }
Expand description

LightReady encapsulates the commit index, committed entries and messages that are ready to be applied or be sent to other peers.

Implementations

The current commit index. It will be None state if there is no update. It is not required to save it to stable storage.

CommittedEntries specifies entries to be committed to a store/state-machine. These have previously been committed to stable store.

Take the CommitEntries.

Messages specifies outbound messages to be sent.

Take the Messages.

Trait Implementations

Formats the value using the given formatter. Read more

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

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.