pub struct Builder {
pub id: String,
pub tls: Box<dyn TlsProvider + Sync + Send>,
pub data_parser: Vec<Arc<dyn Parser + Sync + Send>>,
pub command_parser: Vec<Arc<dyn Parser + Sync + Send>>,
pub dispatch: Vec<Box<dyn MailDispatch + Sync + Send>>,
pub guard: Vec<Box<dyn MailGuard + Sync + Send>>,
pub esmtp: Vec<Box<dyn EsmtpService + Sync + Send>>,
}Fields§
§id: String§tls: Box<dyn TlsProvider + Sync + Send>§data_parser: Vec<Arc<dyn Parser + Sync + Send>>§command_parser: Vec<Arc<dyn Parser + Sync + Send>>§dispatch: Vec<Box<dyn MailDispatch + Sync + Send>>§guard: Vec<Box<dyn MailGuard + Sync + Send>>§esmtp: Vec<Box<dyn EsmtpService + Sync + Send>>Implementations§
Trait Implementations§
Source§impl EsmtpService for Builder
impl EsmtpService for Builder
fn prepare_session(&self, session: &mut SessionInfo)
Source§impl MailDispatch for Builder
impl MailDispatch for Builder
fn send_mail<'a, 's, 'f>(
&'a self,
session: &'s SessionInfo,
transaction: Transaction,
) -> Pin<Box<dyn Future<Output = Result<Transaction, DispatchError>> + Sync + Send + 'f>>where
'a: 'f,
's: 'f,
Source§impl MailGuard for Builder
impl MailGuard for Builder
fn add_recipient<'a, 'f>(
&'a self,
request: AddRecipientRequest,
) -> Pin<Box<dyn Future<Output = AddRecipientResult> + Sync + Send + 'f>>where
'a: 'f,
fn start_mail<'a, 's, 'f>(
&'a self,
session: &'s SessionInfo,
request: Transaction,
) -> Pin<Box<dyn Future<Output = StartMailResult> + Sync + Send + 'f>>where
'a: 'f,
's: 'f,
Source§impl ParserProvider for Builder
impl ParserProvider for Builder
Source§impl TlsProvider for Builder
impl TlsProvider for Builder
fn get_tls_upgrade(&self) -> Option<Box<dyn TlsUpgrade>>
Auto Trait Implementations§
impl Freeze for Builder
impl !RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more