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 moreimpl<C> Eq for Payload<C>where C: Array<Item = u8>,
Auto Trait Implementations§
impl<C> RefUnwindSafe for Payload<C>where C: RefUnwindSafe,
impl<C> Send for Payload<C>where C: Send,
impl<C> Sync for Payload<C>where C: Sync,
impl<C> Unpin for Payload<C>where C: Unpin,
impl<C> UnwindSafe for Payload<C>where C: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more