[−][src]Struct new_tokio_smtp::LocalNonSecureBuilder
Builder for an ConnectionConfig
for an unencrypted smtp connection.Cmd
Should only be used for test setups
Implementations
impl<A> LocalNonSecureBuilder<A> where
A: Cmd,
[src]
A: Cmd,
pub fn port(self, port: u16) -> Self
[src]
overrides the port to use (default: DEFAULT_SMTP_MSA_PORT
)
pub fn client_id(self, client_id: ClientId) -> Self
[src]
overrides the client id to use (default: ClientId::hostname()
)
pub fn auth<NA>(self, auth_cmd: NA) -> LocalNonSecureBuilder<NA> where
NA: Cmd,
[src]
NA: Cmd,
sets the auth command to use (default no authentication)
pub fn syntax_error_handling(self, method: SyntaxErrorHandling) -> Self
[src]
Sets which SyntaxErrorHandling is used during connection setup.
(Currently this only affects EHLO.)
pub fn build(self) -> ConnectionConfig<A, DefaultTlsSetup>
[src]
builds the connection config
pub fn connect(
self
) -> impl Future<Item = Connection, Error = ConnectingFailed> + Send
[src]
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]
A: Cmd,
Auto Trait Implementations
impl<A> RefUnwindSafe for LocalNonSecureBuilder<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for LocalNonSecureBuilder<A>
impl<A> Sync for LocalNonSecureBuilder<A> where
A: Sync,
A: Sync,
impl<A> Unpin for LocalNonSecureBuilder<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for LocalNonSecureBuilder<A> where
A: UnwindSafe,
A: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,