pub struct Http11ReadChunksStream { /* private fields */ }Expand description
I/O-free streaming chunked-body decoder. Complete(Ok(remaining))
carries bytes already buffered past the zero-length terminator.
Trait Implementations§
Source§impl Debug for Http11ReadChunksStream
impl Debug for Http11ReadChunksStream
Source§impl Default for Http11ReadChunksStream
impl Default for Http11ReadChunksStream
Source§fn default() -> Http11ReadChunksStream
fn default() -> Http11ReadChunksStream
Returns the “default value” for a type. Read more
Source§impl HttpCoroutine for Http11ReadChunksStream
impl HttpCoroutine for Http11ReadChunksStream
type Yield = Http11ReadChunksStreamYield
type Return = Result<Vec<u8>, Http11ReadChunksStreamError>
Source§fn resume(
&mut self,
arg: Option<&[u8]>,
) -> HttpCoroutineState<Self::Yield, Self::Return>
fn resume( &mut self, arg: Option<&[u8]>, ) -> HttpCoroutineState<Self::Yield, Self::Return>
Advances one step. Pass
None initially or after HttpYield::WantsWrite;
pass Some(data) after HttpYield::WantsRead; pass Some(&[]) for EOF.Auto Trait Implementations§
impl Freeze for Http11ReadChunksStream
impl RefUnwindSafe for Http11ReadChunksStream
impl Send for Http11ReadChunksStream
impl Sync for Http11ReadChunksStream
impl Unpin for Http11ReadChunksStream
impl UnsafeUnpin for Http11ReadChunksStream
impl UnwindSafe for Http11ReadChunksStream
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