Crate raft [] [src]

Re-exports

pub use self::raft_log::NO_LIMIT;
pub use self::raw_node::is_empty_snap;
pub use self::raw_node::Peer;
pub use self::raw_node::RawNode;
pub use self::raw_node::Ready;
pub use self::raw_node::SnapshotStatus;
pub use self::storage::RaftState;
pub use self::storage::Storage;

Modules

eraftpb
prelude

A "prelude" for crates using the raft crate.

raw_node
storage
util

Structs

Config

Config contains the parameters to start a raft.

Inflights
Progress
ProgressSet

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

Raft
RaftLog

Raft log implementation

ReadState
SoftState
Status
Unstable

Enums

Error
ProgressState
ReadOnlyOption
StateRole
StorageError

Constants

INVALID_ID
INVALID_INDEX

Functions

quorum
vote_resp_msg_type

Type Definitions

Result