Trait samotop::smtp::ApplyCommand[][src]

pub trait ApplyCommand<Data> {
#[must_use = "apply must be awaited"]    pub fn apply_cmd(
        data: &Data,
        state: SmtpState
    ) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
; }

Required methods

#[must_use = "apply must be awaited"]pub fn apply_cmd(
    data: &Data,
    state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
[src]

Loading content...

Implementors

impl ApplyCommand<SmtpCommand> for ESMTP[src]

impl ApplyCommand<SmtpMail> for ESMTP[src]

impl ApplyCommand<ESMTPStartTls> for ESMTPStartTls[src]

pub fn apply_cmd(
    _cmd: &ESMTPStartTls,
    state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
[src]

Applies given helo to the state It asserts the right HELO/EHLO variant

impl ApplyCommand<MailBodyEnd> for ESMTP[src]

impl ApplyCommand<MailBodyEnd> for LMTP[src]

impl ApplyCommand<SmtpData> for ESMTP[src]

impl ApplyCommand<SmtpHelo> for ESMTP[src]

impl ApplyCommand<SmtpHelo> for LMTP[src]

pub fn apply_cmd(
    helo: &SmtpHelo,
    state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
[src]

Applies given helo to the state It asserts the right HELO/EHLO variant

impl ApplyCommand<SmtpInvalidCommand> for ESMTP[src]

impl ApplyCommand<SmtpNoop> for ESMTP[src]

impl ApplyCommand<SmtpQuit> for ESMTP[src]

impl ApplyCommand<SmtpRcpt> for ESMTP[src]

impl ApplyCommand<SmtpRset> for ESMTP[src]

impl ApplyCommand<SmtpUnknownCommand> for ESMTP[src]

impl<B> ApplyCommand<MailBodyChunk<B>> for ESMTP where
    B: AsRef<[u8]> + Send + Sync + Debug
[src]

Loading content...