pub struct Http11HeadersRead { /* private fields */ }Expand description
I/O-free coroutine to read and parse an HTTP/1.X response head.
Trait Implementations§
Source§impl Debug for Http11HeadersRead
impl Debug for Http11HeadersRead
Source§impl Default for Http11HeadersRead
impl Default for Http11HeadersRead
Source§fn default() -> Http11HeadersRead
fn default() -> Http11HeadersRead
Returns the “default value” for a type. Read more
Source§impl HttpCoroutine for Http11HeadersRead
impl HttpCoroutine for Http11HeadersRead
Source§type Return = Result<Http11HeadersReadOutput, Http11HeadersReadError>
type Return = Result<Http11HeadersReadOutput, Http11HeadersReadError>
The terminal value emitted on completion.
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 Http11HeadersRead
impl RefUnwindSafe for Http11HeadersRead
impl Send for Http11HeadersRead
impl Sync for Http11HeadersRead
impl Unpin for Http11HeadersRead
impl UnsafeUnpin for Http11HeadersRead
impl UnwindSafe for Http11HeadersRead
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