Struct samotop_core::mail::Builder[][src]

pub struct Builder {
    pub id: String,
    pub tls: Box<dyn TlsProvider + Sync + Send + 'static>,
    pub data_parser: Vec<Arc<dyn Parser + Sync + Send + 'static>>,
    pub command_parser: Vec<Arc<dyn Parser + Sync + Send + 'static>>,
    pub dispatch: Vec<Box<dyn MailDispatch + Sync + Send + 'static>>,
    pub guard: Vec<Box<dyn MailGuard + Sync + Send + 'static>>,
    pub esmtp: Vec<Box<dyn EsmtpService + Sync + Send + 'static>>,
}

Fields

id: Stringtls: Box<dyn TlsProvider + Sync + Send + 'static>data_parser: Vec<Arc<dyn Parser + Sync + Send + 'static>>command_parser: Vec<Arc<dyn Parser + Sync + Send + 'static>>dispatch: Vec<Box<dyn MailDispatch + Sync + Send + 'static>>guard: Vec<Box<dyn MailGuard + Sync + Send + 'static>>esmtp: Vec<Box<dyn EsmtpService + Sync + Send + 'static>>

Implementations

impl Builder[src]

pub fn using(mut self: Self, setup: impl MailSetup) -> Self[src]

Trait Implementations

impl Debug for Builder[src]

impl Default for Builder[src]

impl EsmtpService for Builder[src]

impl MailDispatch for Builder[src]

impl MailGuard for Builder[src]

impl ParserProvider for Builder[src]

impl TlsProvider for Builder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.