pub enum Chunk<'a> {
Data(&'a [u8]),
End(Vec<Field<'a>>),
}Expand description
One step of a chunked body.
Variants§
Data(&'a [u8])
Body octets, never empty.
End(Vec<Field<'a>>)
The last chunk and its trailer fields; the body has ended.
Trait Implementations§
impl<'a> Eq for Chunk<'a>
impl<'a> StructuralPartialEq for Chunk<'a>
Auto Trait Implementations§
impl<'a> Forget for Chunk<'a>
impl<'a> Freeze for Chunk<'a>
impl<'a> Move for Chunk<'a>
impl<'a> RefUnwindSafe for Chunk<'a>
impl<'a> Send for Chunk<'a>
impl<'a> Sync for Chunk<'a>
impl<'a> Unpin for Chunk<'a>
impl<'a> UnsafeUnpin for Chunk<'a>
impl<'a> UnwindSafe for Chunk<'a>
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