Struct network::protocols::direct_send::Message [−][src]
pub struct Message {
pub protocol_id: ProtocolId,
pub mdata: Bytes,
}Fields
protocol_id: ProtocolIdThe ProtocolId for which of our upstream application modules should
handle (i.e., deserialize and then respond to) this inbound rpc request.
For example, if protocol_id == ProtocolId::ConsensusRpcBcs, then this
inbound rpc request will be dispatched to consensus for handling.
mdata: BytesThe serialized request data received from the sender. At this layer in the stack, the request data is just an opaque blob and will only be fully deserialized later in the handling application module.
Trait Implementations
Converts the SerializedMessage into its deserialized version of TMessage based on the
ProtocolId. See: ProtocolId::from_bytes Read more
Auto Trait Implementations
impl RefUnwindSafe for Message
impl UnwindSafe for Message
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.