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§fn clone(&self) -> PayloadItem
fn clone(&self) -> PayloadItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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§
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
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.