pub enum NetworkMessage<V, A> {
Proposal(SignedProposal<V, A>),
Vote(SignedVote<V, A>),
}Expand description
A message to be gossiped to peers.
These messages represent network communication that needs to be sent to other validators in the network.
Variants§
Proposal(SignedProposal<V, A>)
A complete, locally validated and signed proposal ready to be gossiped.
Vote(SignedVote<V, A>)
A vote received from the network.
Trait Implementations§
Source§impl<V: Clone, A: Clone> Clone for NetworkMessage<V, A>
impl<V: Clone, A: Clone> Clone for NetworkMessage<V, A>
Source§fn clone(&self) -> NetworkMessage<V, A>
fn clone(&self) -> NetworkMessage<V, A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<V, A> Freeze for NetworkMessage<V, A>
impl<V, A> RefUnwindSafe for NetworkMessage<V, A>where
V: RefUnwindSafe,
A: RefUnwindSafe,
impl<V, A> Send for NetworkMessage<V, A>
impl<V, A> Sync for NetworkMessage<V, A>
impl<V, A> Unpin for NetworkMessage<V, A>
impl<V, A> UnwindSafe for NetworkMessage<V, A>where
V: UnwindSafe,
A: 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