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: CImplementations§
Trait Implementations§
Source§impl<C> Ord for Payload<C>
impl<C> Ord for Payload<C>
Source§impl<C> PartialOrd for Payload<C>
impl<C> PartialOrd for Payload<C>
impl<C> Eq for Payload<C>
Auto Trait Implementations§
impl<C> Freeze for Payload<C>where
C: Freeze,
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