pub struct SendSmtpCommand<Cmd> { /* private fields */ }Expand description
I/O-free coroutine sending one SMTP command and parsing its
reply. Cmd: Into<Vec<u8>> is satisfied by every Smtp*Command
struct in this crate.
Implementations§
Trait Implementations§
Source§impl<Cmd> SmtpCoroutine for SendSmtpCommand<Cmd>
impl<Cmd> SmtpCoroutine for SendSmtpCommand<Cmd>
Source§type Return = Result<SendSmtpCommandOk, SendSmtpCommandError>
type Return = Result<SendSmtpCommandOk, SendSmtpCommandError>
Terminal value; by convention
Result<Output, Error>.Source§fn resume(
&mut self,
arg: Option<&[u8]>,
) -> SmtpCoroutineState<Self::Yield, Self::Return>
fn resume( &mut self, arg: Option<&[u8]>, ) -> SmtpCoroutineState<Self::Yield, Self::Return>
Advances the coroutine one step. Pass
None for the initial
call or after a SmtpYield::WantsWrite; Some(data) after
a SmtpYield::WantsRead; Some(&[]) to signal EOF.Auto Trait Implementations§
impl<Cmd> Freeze for SendSmtpCommand<Cmd>
impl<Cmd> RefUnwindSafe for SendSmtpCommand<Cmd>where
Cmd: RefUnwindSafe,
impl<Cmd> Send for SendSmtpCommand<Cmd>where
Cmd: Send,
impl<Cmd> Sync for SendSmtpCommand<Cmd>where
Cmd: Sync,
impl<Cmd> Unpin for SendSmtpCommand<Cmd>where
Cmd: Unpin,
impl<Cmd> UnsafeUnpin for SendSmtpCommand<Cmd>
impl<Cmd> UnwindSafe for SendSmtpCommand<Cmd>where
Cmd: 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
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.