pub trait SmtpCoroutine {
type Yield;
type Return;
// Required method
fn resume(
&mut self,
arg: Option<&[u8]>,
) -> SmtpCoroutineState<Self::Yield, Self::Return>;
}Expand description
Standard-shape SMTP coroutine.
Required Associated Types§
Required Methods§
Sourcefn 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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
Source§impl SmtpCoroutine for SmtpAuthAnonymous
impl SmtpCoroutine for SmtpAuthAnonymous
Source§impl SmtpCoroutine for SmtpAuthLogin
impl SmtpCoroutine for SmtpAuthLogin
Source§impl SmtpCoroutine for SmtpAuthOauthbearer
impl SmtpCoroutine for SmtpAuthOauthbearer
Source§impl SmtpCoroutine for SmtpAuthPlain
impl SmtpCoroutine for SmtpAuthPlain
Source§impl SmtpCoroutine for SmtpAuthScramSha256
Available on crate feature scram only.
impl SmtpCoroutine for SmtpAuthScramSha256
Available on crate feature
scram only.