Struct raft::ProgressSet[][src]

pub struct ProgressSet { /* fields omitted */ }

ProgressSet contains several Progresses, which could be Leader, Follower and Learner.

Methods

impl ProgressSet
[src]

Creates a new ProgressSet.

Returns the status of voters.

Returns the status of learners.

Returns the ids of all known nodes.

Returns the ids of all known learners.

Grabs a reference to the progress of a node.

Grabs a mutable reference to the progress of a node.

Returns an iterator across all the nodes and their progress.

Returns a mutable iterator across all the nodes and their progress.

Adds a voter node

Adds a learner to the cluster

Removes the peer from the set of voters or learners.

Promote a learner to a peer.

Trait Implementations

impl Default for ProgressSet
[src]

Returns the "default value" for a type. Read more

impl Clone for ProgressSet
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for ProgressSet

impl Sync for ProgressSet