pub enum Flood<P> {
Proposal {
round: u64,
proposals: BTreeSet<P>,
},
Decided(P),
}Expand description
What this layer puts on the wire: the two messages Algorithm 5.1 sends, and nothing else.
The round number is the one field this layer adds, and it adds it because it is the one thing this layer keeps that its children do not.
Variants§
Trait Implementations§
Source§impl<'de, P> Deserialize<'de> for Flood<P>where
P: Ord + Deserialize<'de>,
impl<'de, P> Deserialize<'de> for Flood<P>where
P: Ord + 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<P: Eq> Eq for Flood<P>
impl<P: PartialEq> StructuralPartialEq for Flood<P>
Auto Trait Implementations§
impl<P> Freeze for Flood<P>where
P: Freeze,
impl<P> RefUnwindSafe for Flood<P>where
P: RefUnwindSafe,
impl<P> Send for Flood<P>where
P: Send,
impl<P> Sync for Flood<P>where
P: Sync,
impl<P> Unpin for Flood<P>where
P: Unpin,
impl<P> UnsafeUnpin for Flood<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Flood<P>where
P: UnwindSafe + RefUnwindSafe,
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