pub enum BodyEvent<'a> {
Data(&'a [u8]),
End(&'a [u8]),
NeedMore,
}Expand description
One step of body decoding.
Variants§
Data(&'a [u8])
Body bytes, borrowed from the input.
End(&'a [u8])
The body is complete. For a chunked body with trailers this is the raw trailer section
(field lines and the final empty line), ready for parse_trailers;
otherwise it is empty.
NeedMore
All input was used; call again with more.
Trait Implementations§
impl<'a> Copy for BodyEvent<'a>
impl<'a> Eq for BodyEvent<'a>
impl<'a> StructuralPartialEq for BodyEvent<'a>
Auto Trait Implementations§
impl<'a> Forget for BodyEvent<'a>
impl<'a> Freeze for BodyEvent<'a>
impl<'a> Move for BodyEvent<'a>
impl<'a> RefUnwindSafe for BodyEvent<'a>
impl<'a> Send for BodyEvent<'a>
impl<'a> Sync for BodyEvent<'a>
impl<'a> Unpin for BodyEvent<'a>
impl<'a> UnsafeUnpin for BodyEvent<'a>
impl<'a> UnwindSafe for BodyEvent<'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