pub enum JmapYield {
WantsRead,
WantsWrite(Vec<u8>),
}Expand description
Standard I/O-only Yield for coroutines that only read/write socket bytes.
Variants§
WantsRead
Driver should read more bytes and feed them back on the next resume.
WantsWrite(Vec<u8>)
Driver should write these bytes; the next resume typically takes None.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JmapYield
impl RefUnwindSafe for JmapYield
impl Send for JmapYield
impl Sync for JmapYield
impl Unpin for JmapYield
impl UnsafeUnpin for JmapYield
impl UnwindSafe for JmapYield
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