Enum plumtree::message::ProtocolMessage[][src]

pub enum ProtocolMessage<T: System> {
    Gossip(GossipMessage<T>),
    Ihave(IhaveMessage<T>),
    Graft(GraftMessage<T>),
    Prune(PruneMessage<T>),
}

Messages defined by the Plumtree algorithm.

Those are used for inter-node communications.

Variants

Methods

impl<T: System> ProtocolMessage<T>
[src]

Returns the sender of the message.

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

Auto Trait Implementations

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

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