pub struct SimpleBodyDecoder { /* private fields */ }
Expand description
Simple message body decoder that consumes all data until EOF is received.
It does not do any allocations. The message body is returned in form of chunks. No chunks will be returned once EOF is received.
Implementations§
Source§impl SimpleBodyDecoder
impl SimpleBodyDecoder
Sourcepub const fn new() -> SimpleBodyDecoder
pub const fn new() -> SimpleBodyDecoder
Create a new simple body decoder.
Trait Implementations§
Source§impl Default for SimpleBodyDecoder
impl Default for SimpleBodyDecoder
Source§fn default() -> SimpleBodyDecoder
fn default() -> SimpleBodyDecoder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SimpleBodyDecoder
impl RefUnwindSafe for SimpleBodyDecoder
impl Send for SimpleBodyDecoder
impl Sync for SimpleBodyDecoder
impl Unpin for SimpleBodyDecoder
impl UnwindSafe for SimpleBodyDecoder
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