pub enum Wire<B, C> {
Broadcast(B),
Consensus {
round: u64,
msg: C,
},
}Expand description
This layer’s messages: the broadcast’s, and a consensus instance’s stamped with its round.
Variants§
Broadcast(B)
Consensus
Stamped with the round whose instance it belongs to — the round is this layer’s concept, not the consensus’s, so this layer stamps.
Trait Implementations§
Source§impl<'de, B, C> Deserialize<'de> for Wire<B, C>where
B: Deserialize<'de>,
C: Deserialize<'de>,
impl<'de, B, C> Deserialize<'de> for Wire<B, C>where
B: Deserialize<'de>,
C: Deserialize<'de>,
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<B: Eq, C: Eq> Eq for Wire<B, C>
Source§impl<B: PartialEq, C: PartialEq> PartialEq for Wire<B, C>
impl<B: PartialEq, C: PartialEq> PartialEq for Wire<B, C>
impl<B: PartialEq, C: PartialEq> StructuralPartialEq for Wire<B, C>
Auto Trait Implementations§
impl<B, C> Freeze for Wire<B, C>
impl<B, C> RefUnwindSafe for Wire<B, C>where
B: RefUnwindSafe,
C: RefUnwindSafe,
impl<B, C> Send for Wire<B, C>
impl<B, C> Sync for Wire<B, C>
impl<B, C> Unpin for Wire<B, C>
impl<B, C> UnsafeUnpin for Wire<B, C>where
B: UnsafeUnpin,
C: UnsafeUnpin,
impl<B, C> UnwindSafe for Wire<B, C>where
B: UnwindSafe,
C: UnwindSafe,
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