Struct new_tokio_smtp::LocalNonSecureBuilder [−][src]
pub struct LocalNonSecureBuilder<A> where
A: Cmd, { /* fields omitted */ }
Builder for an ConnectionConfig
for an unencrypted smtp connection.Cmd
Should only be used for test setups
Methods
impl<A> LocalNonSecureBuilder<A> where
A: Cmd,
[src]
impl<A> LocalNonSecureBuilder<A> where
A: Cmd,
pub fn port(self, port: u16) -> Self
[src]
pub fn port(self, port: u16) -> Self
overrides the port to use (default: DEFAULT_SMTP_MSA_PORT
)
pub fn client_id(self, client_id: ClientId) -> Self
[src]
pub fn client_id(self, client_id: ClientId) -> Self
overrides the client id to use (default: ClientId::hostname()
)
pub fn auth<NA>(self, auth_cmd: NA) -> LocalNonSecureBuilder<NA> where
NA: Cmd,
[src]
pub fn auth<NA>(self, auth_cmd: NA) -> LocalNonSecureBuilder<NA> where
NA: Cmd,
sets the auth command to use (default no authentication)
pub fn build(self) -> ConnectionConfig<A, DefaultTlsSetup>
[src]
pub fn build(self) -> ConnectionConfig<A, DefaultTlsSetup>
pub fn connect(
self
) -> impl Future<Item = Connection, Error = ConnectingFailed> + Send
[src]
pub fn connect(
self
) -> impl Future<Item = Connection, Error = ConnectingFailed> + Send
Calls Connection::connect(self.build())
.
Trait Implementations
impl<A: Debug> Debug for LocalNonSecureBuilder<A> where
A: Cmd,
[src]
impl<A: Debug> Debug for LocalNonSecureBuilder<A> where
A: Cmd,
Auto Trait Implementations
impl<A> Send for LocalNonSecureBuilder<A>
impl<A> Send for LocalNonSecureBuilder<A>
impl<A> Sync for LocalNonSecureBuilder<A> where
A: Sync,
impl<A> Sync for LocalNonSecureBuilder<A> where
A: Sync,