Enum safe_network::routing::MessageReceived [−][src]
pub enum MessageReceived {
NodeCmd(NodeCmd),
NodeQuery(NodeQuery),
NodeQueryResponse {
response: NodeQueryResponse,
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.
Tuple Fields of NodeCmd
0: NodeCmd
NodeQuery(NodeQuery)
Queries is a read-only operation.
Tuple Fields of NodeQuery
0: NodeQuery
The response to a query, containing the query result.
Fields of NodeQueryResponse
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
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