Struct kwap_msg::Payload [−][src]
pub struct Payload<C: Collection<u8>>(pub C)
where
for<'a> &'a C: IntoIterator<Item = &'a u8>;
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
impl<C: Clone + Collection<u8>> Clone for Payload<C> where
for<'a> &'a C: IntoIterator<Item = &'a u8>,
impl<C: Clone + Collection<u8>> Clone for Payload<C> where
for<'a> &'a C: IntoIterator<Item = &'a u8>,
impl<C: Debug + Collection<u8>> Debug for Payload<C> where
for<'a> &'a C: IntoIterator<Item = &'a u8>,
impl<C: Debug + Collection<u8>> Debug for Payload<C> where
for<'a> &'a C: IntoIterator<Item = &'a u8>,
impl<C: PartialEq + Collection<u8>> PartialEq<Payload<C>> for Payload<C> where
for<'a> &'a C: IntoIterator<Item = &'a u8>,
impl<C: PartialEq + Collection<u8>> PartialEq<Payload<C>> for Payload<C> where
for<'a> &'a C: IntoIterator<Item = &'a u8>,
impl<C: PartialOrd + Collection<u8>> PartialOrd<Payload<C>> for Payload<C> where
for<'a> &'a C: IntoIterator<Item = &'a u8>,
impl<C: PartialOrd + Collection<u8>> PartialOrd<Payload<C>> for Payload<C> where
for<'a> &'a C: IntoIterator<Item = &'a u8>,
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl<C: Collection<u8>> StructuralPartialEq for Payload<C> where
for<'a> &'a C: IntoIterator<Item = &'a u8>,
Auto Trait Implementations
impl<C> RefUnwindSafe for Payload<C> where
C: RefUnwindSafe,
impl<C> UnwindSafe for Payload<C> where
C: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more