pub enum SmtpCoroutineState<Y, R> {
Yielded(Y),
Complete(R),
}Expand description
State yielded by an SmtpCoroutine::resume step.
Variants§
Yielded(Y)
Intermediate yield; the caller reacts and resumes.
Complete(R)
Terminal yield; by convention R = Result<Output, Error>.
Trait Implementations§
Auto Trait Implementations§
impl<Y, R> Freeze for SmtpCoroutineState<Y, R>
impl<Y, R> RefUnwindSafe for SmtpCoroutineState<Y, R>where
Y: RefUnwindSafe,
R: RefUnwindSafe,
impl<Y, R> Send for SmtpCoroutineState<Y, R>
impl<Y, R> Sync for SmtpCoroutineState<Y, R>
impl<Y, R> Unpin for SmtpCoroutineState<Y, R>
impl<Y, R> UnsafeUnpin for SmtpCoroutineState<Y, R>where
Y: UnsafeUnpin,
R: UnsafeUnpin,
impl<Y, R> UnwindSafe for SmtpCoroutineState<Y, R>where
Y: UnwindSafe,
R: UnwindSafe,
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
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.