[−][src]Trait samotop_core::service::mail::EsmtpService
The service which implements this trait delivers ESMTP extensions.
/// This mail service canhabdle 8-bit MIME #[derive(Clone, Debug)] pub struct EnableEightBit<T>(T); impl<T> EsmtpService for EnableEightBit<T> where T: EsmtpService, { fn extend(&self, connection: &mut Connection) { self.0.extend(connection); connection .extensions_mut() .enable(SmtpExtension::EIGHTBITMIME); } }
Required methods
fn extend(&self, connection: &mut Connection)
Implementors
impl EsmtpService for DefaultMailService
[src]
fn extend(&self, _connection: &mut Connection)
[src]
impl<NS, ES, GS, QS> EsmtpService for CompositeMailService<NS, ES, GS, QS> where
NS: NamedService,
ES: EsmtpService,
GS: MailGuard,
QS: MailQueue,
[src]
NS: NamedService,
ES: EsmtpService,
GS: MailGuard,
QS: MailQueue,
fn extend(&self, connection: &mut Connection)
[src]
impl<T> EsmtpService for Arc<T> where
T: EsmtpService,
[src]
T: EsmtpService,