Trait samotop::smtp::ApplyCommand [−][src]
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>>ⓘ
[src]
data: &Data,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
Implementors
impl ApplyCommand<SmtpCommand> for ESMTP
[src]
pub fn apply_cmd(
cmd: &SmtpCommand,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
[src]
cmd: &SmtpCommand,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
impl ApplyCommand<SmtpMail> for ESMTP
[src]
pub fn apply_cmd(
cmd: &SmtpMail,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
[src]
cmd: &SmtpMail,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
impl ApplyCommand<ESMTPStartTls> for ESMTPStartTls
[src]
pub fn apply_cmd(
_cmd: &ESMTPStartTls,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
[src]
_cmd: &ESMTPStartTls,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
Applies given helo to the state It asserts the right HELO/EHLO variant
impl ApplyCommand<MailBodyEnd> for ESMTP
[src]
pub fn apply_cmd(
_data: &MailBodyEnd,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
[src]
_data: &MailBodyEnd,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
impl ApplyCommand<MailBodyEnd> for LMTP
[src]
pub fn apply_cmd(
_data: &MailBodyEnd,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
[src]
_data: &MailBodyEnd,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
impl ApplyCommand<SmtpData> for ESMTP
[src]
pub fn apply_cmd(
_cmd: &SmtpData,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
[src]
_cmd: &SmtpData,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
impl ApplyCommand<SmtpHelo> for ESMTP
[src]
pub fn apply_cmd(
cmd: &SmtpHelo,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
[src]
cmd: &SmtpHelo,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
impl ApplyCommand<SmtpHelo> for LMTP
[src]
pub fn apply_cmd(
helo: &SmtpHelo,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
[src]
helo: &SmtpHelo,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
Applies given helo to the state It asserts the right HELO/EHLO variant
impl ApplyCommand<SmtpInvalidCommand> for ESMTP
[src]
pub fn apply_cmd(
_cmd: &SmtpInvalidCommand,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
[src]
_cmd: &SmtpInvalidCommand,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
impl ApplyCommand<SmtpNoop> for ESMTP
[src]
pub fn apply_cmd(
_cmd: &SmtpNoop,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
[src]
_cmd: &SmtpNoop,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
impl ApplyCommand<SmtpQuit> for ESMTP
[src]
pub fn apply_cmd(
_cmd: &SmtpQuit,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
[src]
_cmd: &SmtpQuit,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
impl ApplyCommand<SmtpRcpt> for ESMTP
[src]
pub fn apply_cmd(
cmd: &SmtpRcpt,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
[src]
cmd: &SmtpRcpt,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
impl ApplyCommand<SmtpRset> for ESMTP
[src]
pub fn apply_cmd(
_cmd: &SmtpRset,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
[src]
_cmd: &SmtpRset,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
impl ApplyCommand<SmtpUnknownCommand> for ESMTP
[src]
pub fn apply_cmd(
_cmd: &SmtpUnknownCommand,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
[src]
_cmd: &SmtpUnknownCommand,
state: SmtpState
) -> Pin<Box<dyn Future<Output = SmtpState> + Send + Sync, Global>>ⓘ
impl<B> ApplyCommand<MailBodyChunk<B>> for ESMTP where
B: AsRef<[u8]> + Send + Sync + Debug,
[src]
B: AsRef<[u8]> + Send + Sync + Debug,