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
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
destination: T::NodeId | The destination of the message. |
message: ProtocolMessage<T> | The outgoing message. |
Deliver
Deliver a message to the applications waiting for messages.
Fields of Deliver
message: Message<T> | 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]
impl<T: System> Debug for Action<T> where
T::NodeId: Debug,
T::MessageId: Debug,
T::MessagePayload: Debug,