pub struct SmtpTransportBuilder { /* private fields */ }
Expand description
Contains client configuration.
Instances of this struct can be created using functions of SmtpTransport
.
Implementations§
Source§impl SmtpTransportBuilder
Builder for the SMTP SmtpTransport
impl SmtpTransportBuilder
Builder for the SMTP SmtpTransport
Sourcepub fn hello_name(self, name: ClientId) -> Self
pub fn hello_name(self, name: ClientId) -> Self
Set the name used during EHLO
Sourcepub fn credentials(self, credentials: Credentials) -> Self
pub fn credentials(self, credentials: Credentials) -> Self
Set the authentication mechanism to use
Sourcepub fn authentication(self, mechanisms: Vec<Mechanism>) -> Self
pub fn authentication(self, mechanisms: Vec<Mechanism>) -> Self
Set the authentication mechanism to use
Sourcepub fn pool_config(self, pool_config: PoolConfig) -> Self
pub fn pool_config(self, pool_config: PoolConfig) -> Self
Use a custom configuration for the connection pool
Defaults can be found at PoolConfig
Sourcepub fn build(self) -> SmtpTransport
pub fn build(self) -> SmtpTransport
Build the transport
If the pool
feature is enabled an Arc
wrapped pool is be created.
Defaults can be found at PoolConfig
Trait Implementations§
Source§impl Clone for SmtpTransportBuilder
impl Clone for SmtpTransportBuilder
Source§fn clone(&self) -> SmtpTransportBuilder
fn clone(&self) -> SmtpTransportBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SmtpTransportBuilder
impl RefUnwindSafe for SmtpTransportBuilder
impl Send for SmtpTransportBuilder
impl Sync for SmtpTransportBuilder
impl Unpin for SmtpTransportBuilder
impl UnwindSafe for SmtpTransportBuilder
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