Trait samotop::mail::EsmtpService[][src]

pub trait EsmtpService: Debug {
    pub fn prepare_session(&self, session: &mut SessionInfo);
}

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 prepare_session(&self, session: &mut SessionInfo) {
        self.0.prepare_session(session);
        session
            .extensions
            .enable(&extension::EIGHTBITMIME);
    }
}

Required methods

pub fn prepare_session(&self, session: &mut SessionInfo)[src]

Loading content...

Implementations on Foreign Types

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

Loading content...

Implementors

impl EsmtpService for Builder[src]

impl EsmtpService for DebugMailService[src]

impl EsmtpService for Name[src]

Loading content...