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
Trait Implementations§
source§impl<C: PartialEq> PartialEq<Payload<C>> for Payload<C>
impl<C: PartialEq> PartialEq<Payload<C>> for Payload<C>
source§impl<C: PartialOrd> PartialOrd<Payload<C>> for Payload<C>
impl<C: PartialOrd> PartialOrd<Payload<C>> for Payload<C>
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