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