pub enum EpochMsg {
NewEpoch {
ts: u64,
},
Nack {
nts: u64,
},
}Expand description
What this layer puts on the wire, beneath the broadcast.
Variants§
NewEpoch
[NEWEPOCH, ts] — the trusted leader announcing the epoch it wants to start.
Nack
[NACK, nts] — “I will not start that one”, sent back to the would-be leader, naming the
timestamp it is refusing. Algorithm 5.5 writes a bare [NACK]; the timestamp is taken from
Algorithm 5.8, and the reason is in the module documentation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EpochMsg
impl<'de> Deserialize<'de> for EpochMsg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EpochMsg
impl StructuralPartialEq for EpochMsg
Auto Trait Implementations§
impl Freeze for EpochMsg
impl RefUnwindSafe for EpochMsg
impl Send for EpochMsg
impl Sync for EpochMsg
impl Unpin for EpochMsg
impl UnsafeUnpin for EpochMsg
impl UnwindSafe for EpochMsg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more