pub struct BodyDecoder { /* private fields */ }Expand description
Decodes one message body from successive pieces of input.
Each call returns how many input bytes it used and one event. Data comes back as slices of
the input; chunk-size lines are consumed as they arrive (no buffering), and only an
incomplete trailer section is left in the input (consumed stops before it) until it is
whole, up to Limits::max_trailers.
Implementations§
Source§impl BodyDecoder
impl BodyDecoder
Trait Implementations§
Source§impl Clone for BodyDecoder
impl Clone for BodyDecoder
Auto Trait Implementations§
impl Forget for BodyDecoder
impl Freeze for BodyDecoder
impl Move for BodyDecoder
impl RefUnwindSafe for BodyDecoder
impl Send for BodyDecoder
impl Sync for BodyDecoder
impl Unpin for BodyDecoder
impl UnsafeUnpin for BodyDecoder
impl UnwindSafe for BodyDecoder
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