Struct plumtree::message::GossipMessage[][src]

pub struct GossipMessage<T: System> {
    pub sender: T::NodeId,
    pub message: Message<T>,
    pub round: u16,
}

GOSSIP message.

Fields

The sender of the message.

The message to be diffused.

The hop count of the message.

Trait Implementations

impl<T: System> From<GossipMessage<T>> for ProtocolMessage<T>
[src]

Performs the conversion.

impl<T: System> Clone for GossipMessage<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: System> Debug for GossipMessage<T> where
    T::NodeId: Debug,
    T::MessageId: Debug,
    T::MessagePayload: Debug
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for GossipMessage<T> where
    <T as System>::MessageId: Send,
    <T as System>::MessagePayload: Send,
    <T as System>::NodeId: Send

impl<T> Sync for GossipMessage<T> where
    <T as System>::MessageId: Sync,
    <T as System>::MessagePayload: Sync,
    <T as System>::NodeId: Sync