pub struct SmtpCommandSend<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 SmtpCommandSend<Cmd>
impl<Cmd> SmtpCoroutine for SmtpCommandSend<Cmd>
Source§type Return = Result<SmtpCommandSendOk, SmtpCommandSendError>
type Return = Result<SmtpCommandSendOk, SmtpCommandSendError>
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 SmtpCommandSend<Cmd>
impl<Cmd> RefUnwindSafe for SmtpCommandSend<Cmd>where
Cmd: RefUnwindSafe,
impl<Cmd> Send for SmtpCommandSend<Cmd>where
Cmd: Send,
impl<Cmd> Sync for SmtpCommandSend<Cmd>where
Cmd: Sync,
impl<Cmd> Unpin for SmtpCommandSend<Cmd>where
Cmd: Unpin,
impl<Cmd> UnsafeUnpin for SmtpCommandSend<Cmd>
impl<Cmd> UnwindSafe for SmtpCommandSend<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
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.