Skip to main content

Msg

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

Fields

§view: u64
§entries: Vec<Entry>
§commit: Op
§

PrepareOk

Fields

§view: u64
§op: Op
§

Commit

Fields

§view: u64
§commit: Op
§

StartViewChange

Fields

§view: u64
§

DoViewChange

Fields

§view: u64
§last_normal: u64
§op: Op
§commit: Op
§entries: Vec<Entry>

Entries after commit.

§

StartView

Fields

§view: u64
§op: Op
§commit: Op
§entries: Vec<Entry>
§

GetEntries

Fields

§view: u64
§from: Op
§to: Op
§

Entries

Fields

§view: u64
§entries: Vec<Entry>
§commit: Op
§

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.

Fields

§view: u64
§first: Op
§last: Op
§

RepairEntries

Fields

§entries: Vec<Entry>
§commit: Op
§

GetState

Fields

§view: u64
§after: Op
§

StateOffer

Larger state transfers are pulled in byte- and count-bounded pages. Each page is an ordinary Entries reply from this view’s primary.

Fields

§view: u64
§after: Op
§commit: Op
§through: Op
§

NewState

Fields

§view: u64
§commit: Op
§after: Op
§entries: Vec<Entry>
§

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.

Fields

§view: u64
§stamp: u64
§

Pong

Fields

§view: u64
§stamp: u64
§

GetEpoch

A member that saw a newer epoch than epoch (or a joining one) asks for the configuration.

Fields

§epoch: u64
§

Epoch

The committed reconfiguration entry that began the sender’s epoch.

Fields

§entry: Entry
§

Reconfigure

A member asks the primary to change the membership (body is a reconfiguration body; its epoch is ignored).

Fields

§body: Payload

Trait Implementations§

§

impl Clone for Msg

§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Msg

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Eq for Msg

§

impl PartialEq for Msg

§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl StructuralPartialEq for Msg

Auto Trait Implementations§

§

impl Forget for Msg

§

impl Freeze for Msg

§

impl Move for Msg

§

impl RefUnwindSafe for Msg

§

impl Send for Msg

§

impl Sync for Msg

§

impl Unpin for Msg

§

impl UnsafeUnpin for Msg

§

impl UnwindSafe for Msg

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.