pub enum GmailYield {
WantsRead,
WantsWrite(Vec<u8>),
}Expand description
The I/O request a coroutine yields: read bytes from the stream, or write the given bytes to it.
Variants§
WantsRead
The coroutine wants bytes read from the stream.
WantsWrite(Vec<u8>)
The coroutine wants the given bytes written to the stream.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GmailYield
impl RefUnwindSafe for GmailYield
impl Send for GmailYield
impl Sync for GmailYield
impl Unpin for GmailYield
impl UnsafeUnpin for GmailYield
impl UnwindSafe for GmailYield
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