Trait samotop::smtp::SmtpSessionCommand[][src]

pub trait SmtpSessionCommand: Send + Sync + Debug {
    pub fn verb(&self) -> &str;
#[must_use = "apply must be awaited"] pub fn apply(
        &self,
        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

pub fn verb(&self) -> &str[src]

#[must_use = "apply must be awaited"]pub fn apply(
    &self,
    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...

Implementations on Foreign Types

impl<T, E> SmtpSessionCommand for Result<T, E> where
    T: SmtpSessionCommand,
    E: Debug + Sync + Send
[src]

Loading content...

Implementors

impl SmtpSessionCommand for ESMTPCommand<SmtpCommand>[src]

impl SmtpSessionCommand for ESMTPCommand<SmtpMail>[src]

impl SmtpSessionCommand for ESMTPCommand<MailBodyEnd>[src]

impl SmtpSessionCommand for ESMTPCommand<SmtpData>[src]

impl SmtpSessionCommand for ESMTPCommand<SmtpHelo>[src]

impl SmtpSessionCommand for ESMTPCommand<SmtpInvalidCommand>[src]

impl SmtpSessionCommand for ESMTPCommand<SmtpNoop>[src]

impl SmtpSessionCommand for ESMTPCommand<SmtpQuit>[src]

impl SmtpSessionCommand for ESMTPCommand<SmtpRcpt>[src]

impl SmtpSessionCommand for ESMTPCommand<SmtpRset>[src]

impl SmtpSessionCommand for ESMTPCommand<SmtpUnknownCommand>[src]

impl SmtpSessionCommand for ESMTPStartTls[src]

impl SmtpSessionCommand for LMTPCommand<SmtpCommand>[src]

impl SmtpSessionCommand for LMTPCommand<MailBodyEnd>[src]

impl SmtpSessionCommand for LMTPCommand<SmtpHelo>[src]

impl SmtpSessionCommand for SessionInfo[src]

impl SmtpSessionCommand for ProcessingError[src]

impl SmtpSessionCommand for SessionShutdown[src]

impl SmtpSessionCommand for Timeout[src]

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

Loading content...