Enum simple_raft::message::Rpc [−][src]
pub enum Rpc { VoteRequest(VoteRequest), VoteResponse(VoteResponse), AppendRequest(AppendRequest), AppendResponse(AppendResponse), }
Expand description
A Remote Procedure Call message to a Raft node.
Variants
VoteRequest(VoteRequest)
A request to obtain leadership amongst Raft nodes.
VoteResponse(VoteResponse)
A response to a VoteRequest
granting or denying leadership.
AppendRequest(AppendRequest)
A request to append entries to a Raft node’s log.
AppendResponse(AppendResponse)
A response to an AppendRequest
allowing or denying an append to the Raft node’s log.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Rpc
impl UnwindSafe for Rpc
Blanket Implementations
Mutably borrows from an owned value. Read more