Enum Msg
pub enum Msg {
Show 18 variants
Prepare {
view: u64,
entries: Vec<Entry>,
commit: Op,
},
PrepareOk {
view: u64,
op: Op,
},
Commit {
view: u64,
commit: Op,
},
StartViewChange {
view: u64,
},
DoViewChange {
view: u64,
last_normal: u64,
op: Op,
commit: Op,
entries: Vec<Entry>,
},
StartView {
view: u64,
op: Op,
commit: Op,
entries: Vec<Entry>,
},
GetEntries {
view: u64,
from: Op,
to: Op,
},
Entries {
view: u64,
entries: Vec<Entry>,
commit: Op,
},
GetRepair {
view: u64,
first: Op,
last: Op,
},
RepairEntries {
entries: Vec<Entry>,
commit: Op,
},
GetState {
view: u64,
after: Op,
},
StateOffer {
view: u64,
after: Op,
commit: Op,
through: Op,
},
NewState {
view: u64,
commit: Op,
after: Op,
entries: Vec<Entry>,
},
Ping {
view: u64,
stamp: u64,
},
Pong {
view: u64,
stamp: u64,
},
GetEpoch {
epoch: u64,
},
Epoch {
entry: Entry,
},
Reconfigure {
body: Payload,
},
}Variants§
Prepare
PrepareOk
Commit
StartViewChange
DoViewChange
StartView
GetEntries
Entries
GetRepair
A recovering member may request an intact island from a partially damaged peer. Prepared bytes are accepted only with a surviving local successor that authenticates them, or a peer’s committed watermark.
RepairEntries
GetState
StateOffer
Larger state transfers are pulled in byte- and count-bounded pages. Each page is an ordinary Entries reply from this view’s primary.
NewState
Ping
Sent by the primary with each heartbeat. A backup normal in view
promises not to vote for Timing::promise_ms and answers with
Msg::Pong. stamp is the primary’s clock when it sent it.
Pong
GetEpoch
A member that saw a newer epoch than epoch (or a joining one) asks
for the configuration.
Epoch
The committed reconfiguration entry that began the sender’s epoch.
Reconfigure
A member asks the primary to change the membership (body is a
reconfiguration body; its epoch is ignored).