Enum plumtree::Action[][src]

pub enum Action<T: System> {
    Send {
        destination: T::NodeId,
        message: ProtocolMessage<T>,
    },
    Deliver {
        message: Message<T>,
    },
}

Actions instructed by Plumtree Node.

For running Plumtree nodes, the actions must be handled correctly by upper layers.

Variants

Send a message.

If it is failed to send the message (e.g., the destination node does not exist), the message will be discarded silently.

Fields of Send

The destination of the message.

The outgoing message.

Deliver a message to the applications waiting for messages.

Fields of Deliver

The message to be delivered.

Trait Implementations

impl<T: System> Debug for Action<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 Action<T> where
    <T as System>::MessageId: Send,
    <T as System>::MessagePayload: Send,
    <T as System>::NodeId: Send

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