pub struct Payload<C>(pub C);
Expand description
Payloads and Representations
generated from RFC7252 section 5.5
Both requests and responses may include a payload, depending on the Method or Response Code, respectively. If a Method or Response Code is not defined to have a payload, then a sender MUST NOT include one, and a recipient MUST ignore it.
Tuple Fields§
§0: C
Implementations§
Trait Implementations§
source§impl<C> Ord for Payload<C>where
C: Array<Item = u8>,
impl<C> Ord for Payload<C>where C: Array<Item = u8>,
source§impl<C> PartialEq<Payload<C>> for Payload<C>where
C: Array<Item = u8>,
impl<C> PartialEq<Payload<C>> for Payload<C>where C: Array<Item = u8>,
source§impl<C> PartialOrd<Payload<C>> for Payload<C>where
C: Array<Item = u8>,
impl<C> PartialOrd<Payload<C>> for Payload<C>where C: Array<Item = u8>,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more