pub enum PayloadItem {
Chunk(Bytes),
Trailers(HeaderMap),
Eof,
}Expand description
A decoded HTTP/1 payload item.
Variants§
Chunk(Bytes)
A payload data chunk.
Trailers(HeaderMap)
Trailer fields of a chunked payload, PayloadItem::Eof follows.
Eof
The end of the payload.
Trait Implementations§
Source§impl Clone for PayloadItem
impl Clone for PayloadItem
Source§impl Debug for PayloadItem
impl Debug for PayloadItem
impl Eq for PayloadItem
Source§impl PartialEq for PayloadItem
impl PartialEq for PayloadItem
impl StructuralPartialEq for PayloadItem
Auto Trait Implementations§
impl Freeze for PayloadItem
impl RefUnwindSafe for PayloadItem
impl Send for PayloadItem
impl Sync for PayloadItem
impl Unpin for PayloadItem
impl UnsafeUnpin for PayloadItem
impl UnwindSafe for PayloadItem
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.