Enum safe_network::routing::MessageReceived [−][src]
pub enum MessageReceived { NodeCmd(NodeCmd), NodeCmdError { error: NodeCmdError, correlation_id: MessageId, }, NodeEvent { event: NodeEvent, correlation_id: MessageId, }, NodeQuery(NodeQuery), NodeQueryResponse { response: NodeQueryResponse, correlation_id: MessageId, }, NodeMsgError { error: Error, correlation_id: MessageId, }, }
Expand description
Type of messages that are received from a peer
Variants
NodeCmd(NodeCmd)
Cmds only sent a among Nodes in the network.
An error of a NodeCmd.
Fields of NodeCmdError
Events only sent among Nodes in the network.
NodeQuery(NodeQuery)
Queries is a read-only operation.
The response to a query, containing the query result.
Fields of NodeQueryResponse
The returned error, from any msg handling on recipient node.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MessageReceived
impl Send for MessageReceived
impl Sync for MessageReceived
impl Unpin for MessageReceived
impl UnwindSafe for MessageReceived
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more