pub struct DirectSendMsg {
pub protocol_id: ProtocolId,
pub priority: Priority,
pub raw_msg: Vec<u8>,
}
Fields§
§protocol_id: ProtocolId
protocol_id
is a variant of the ProtocolId enum.
priority: Priority
Message priority in the range 0..=255.
raw_msg: Vec<u8>
Message payload.
Trait Implementations§
source§impl Arbitrary for DirectSendMsg
impl Arbitrary for DirectSendMsg
§type Parameters = (<ProtocolId as Arbitrary>::Parameters, <u8 as Arbitrary>::Parameters, <Vec<u8, Global> as Arbitrary>::Parameters)
type Parameters = (<ProtocolId as Arbitrary>::Parameters, <u8 as Arbitrary>::Parameters, <Vec<u8, Global> as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<(<ProtocolId as Arbitrary>::Strategy, <u8 as Arbitrary>::Strategy, <Vec<u8, Global> as Arbitrary>::Strategy), fn(_: (ProtocolId, u8, Vec<u8, Global>)) -> DirectSendMsg>
type Strategy = Map<(<ProtocolId as Arbitrary>::Strategy, <u8 as Arbitrary>::Strategy, <Vec<u8, Global> as Arbitrary>::Strategy), fn(_: (ProtocolId, u8, Vec<u8, Global>)) -> DirectSendMsg>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
source§impl Clone for DirectSendMsg
impl Clone for DirectSendMsg
source§fn clone(&self) -> DirectSendMsg
fn clone(&self) -> DirectSendMsg
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DirectSendMsg
impl Debug for DirectSendMsg
source§impl<'de> Deserialize<'de> for DirectSendMsg
impl<'de> Deserialize<'de> for DirectSendMsg
source§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
source§impl PartialEq<DirectSendMsg> for DirectSendMsg
impl PartialEq<DirectSendMsg> for DirectSendMsg
source§fn eq(&self, other: &DirectSendMsg) -> bool
fn eq(&self, other: &DirectSendMsg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DirectSendMsg
impl Serialize for DirectSendMsg
impl Eq for DirectSendMsg
impl StructuralEq for DirectSendMsg
impl StructuralPartialEq for DirectSendMsg
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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PersistableConfig for Twhere
T: Serialize + DeserializeOwned + ?Sized,
impl<T> PersistableConfig for Twhere T: Serialize + DeserializeOwned + ?Sized,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> Serialize for Twhere
T: Serialize + ?Sized,
impl<T> Serialize for Twhere T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.