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§
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