pub struct Http11ReadChunks { /* private fields */ }Expand description
I/O-free coroutine to read an HTTP response body using chunked transfer coding.
Trait Implementations§
Source§impl Debug for Http11ReadChunks
impl Debug for Http11ReadChunks
Source§impl Default for Http11ReadChunks
impl Default for Http11ReadChunks
Source§fn default() -> Http11ReadChunks
fn default() -> Http11ReadChunks
Returns the “default value” for a type. Read more
Source§impl HttpCoroutine for Http11ReadChunks
impl HttpCoroutine for Http11ReadChunks
type Yield = HttpYield
type Return = Result<Http11ReadChunksOutput, Http11ReadChunksError>
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 Http11ReadChunks
impl RefUnwindSafe for Http11ReadChunks
impl Send for Http11ReadChunks
impl Sync for Http11ReadChunks
impl Unpin for Http11ReadChunks
impl UnsafeUnpin for Http11ReadChunks
impl UnwindSafe for Http11ReadChunks
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