[][src]Trait samotop_core::service::mail::EsmtpService

pub trait EsmtpService: Send + Sync {
    fn extend(&self, connection: &mut Connection);
}

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)

Loading content...

Implementors

impl EsmtpService for DefaultMailService[src]

impl<NS, ES, GS, QS> EsmtpService for CompositeMailService<NS, ES, GS, QS> where
    NS: NamedService,
    ES: EsmtpService,
    GS: MailGuard,
    QS: MailQueue
[src]

impl<T> EsmtpService for Arc<T> where
    T: EsmtpService
[src]

Loading content...