Struct network::protocols::wire::messaging::v1::DirectSendMsg [−][src]
pub struct DirectSendMsg {
pub protocol_id: ProtocolId,
pub priority: Priority,
pub raw_msg: Vec<u8>,
}Fields
protocol_id: ProtocolIdprotocol_id is a variant of the ProtocolId enum.
priority: PriorityMessage priority in the range 0..=255.
raw_msg: Vec<u8>Message payload.
Trait Implementations
type Parameters = (<ProtocolId as Arbitrary>::Parameters, <Priority as Arbitrary>::Parameters, <Vec<u8> as Arbitrary>::Parameters)
type Parameters = (<ProtocolId as Arbitrary>::Parameters, <Priority as Arbitrary>::Parameters, <Vec<u8> as Arbitrary>::Parameters)
The type of parameters that arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for DirectSendMsg
impl Send for DirectSendMsg
impl Sync for DirectSendMsg
impl Unpin for DirectSendMsg
impl UnwindSafe for DirectSendMsg
Blanket Implementations
Mutably borrows from an owned value. 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
Generates a hash used only for tests.