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
sourceimpl<C: PartialEq> PartialEq<Payload<C>> for Payload<C>
impl<C: PartialEq> PartialEq<Payload<C>> for Payload<C>
sourceimpl<C: PartialOrd> PartialOrd<Payload<C>> for Payload<C>
impl<C: PartialOrd> PartialOrd<Payload<C>> for Payload<C>
sourcefn partial_cmp(&self, other: &Payload<C>) -> Option<Ordering>
fn partial_cmp(&self, other: &Payload<C>) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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> StructuralPartialEq for Payload<C>
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more