pub enum HttpYield {
WantsRead,
WantsWrite(Vec<u8>),
}Expand description
Standard I/O-only Yield; pick type Yield = HttpYield when the
coroutine only reads or writes socket bytes.
Variants§
WantsRead
The coroutine wants bytes read from the stream and handed back on the next resume.
WantsWrite(Vec<u8>)
The coroutine wants these bytes written to the stream.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpYield
impl RefUnwindSafe for HttpYield
impl Send for HttpYield
impl Sync for HttpYield
impl Unpin for HttpYield
impl UnsafeUnpin for HttpYield
impl UnwindSafe for HttpYield
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