pub struct GossipMessage<T: System> {
pub sender: T::NodeId,
pub message: Message<T>,
pub round: u16,
}Expand description
GOSSIP message.
Fields§
§sender: T::NodeIdThe sender of the message.
message: Message<T>The message to be diffused.
round: u16The hop count of the message.
Trait Implementations§
Source§impl<T: System> Clone for GossipMessage<T>
impl<T: System> Clone for GossipMessage<T>
Source§impl<T: System> Debug for GossipMessage<T>
impl<T: System> Debug for GossipMessage<T>
Source§impl<T: System> From<GossipMessage<T>> for ProtocolMessage<T>
impl<T: System> From<GossipMessage<T>> for ProtocolMessage<T>
Source§fn from(f: GossipMessage<T>) -> Self
fn from(f: GossipMessage<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for GossipMessage<T>
impl<T> RefUnwindSafe for GossipMessage<T>where
<T as System>::NodeId: RefUnwindSafe,
<T as System>::MessageId: RefUnwindSafe,
<T as System>::MessagePayload: RefUnwindSafe,
impl<T> Send for GossipMessage<T>
impl<T> Sync for GossipMessage<T>
impl<T> Unpin for GossipMessage<T>
impl<T> UnwindSafe for GossipMessage<T>where
<T as System>::NodeId: UnwindSafe,
<T as System>::MessageId: UnwindSafe,
<T as System>::MessagePayload: 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