Struct plumtree::message::IhaveMessage[][src]

pub struct IhaveMessage<T: System> {
    pub sender: T::NodeId,
    pub message_id: T::MessageId,
    pub round: u16,
    pub realtime: bool,
}

IHAVE message.

Fields

The sender of the message.

The identifier of the message that the sender has keeping.

The hop count of the message.

Indicates whether this is a real-time message or a buffered message.

The latter is used for synchronizing messages when new neighbors are joined.

Trait Implementations

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

Performs the conversion.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

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

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