pub enum SmtpYield {
WantsRead,
WantsWrite(Vec<u8>),
}Expand description
Standard I/O-only Yield; every coroutine in this crate picks it.
Variants§
WantsRead
Driver should read more bytes and feed them back on resume.
WantsWrite(Vec<u8>)
Driver should write these bytes; the next resume takes None.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SmtpYield
impl RefUnwindSafe for SmtpYield
impl Send for SmtpYield
impl Sync for SmtpYield
impl Unpin for SmtpYield
impl UnsafeUnpin for SmtpYield
impl UnwindSafe for SmtpYield
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.