[][src]Struct new_tokio_smtp::LocalNonSecureBuilder

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

Implementations

impl<A> LocalNonSecureBuilder<A> where
    A: Cmd
[src]

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]

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]

Calls Connection::connect(self.build()).

Trait Implementations

impl<A: Debug> Debug for LocalNonSecureBuilder<A> where
    A: Cmd
[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for LocalNonSecureBuilder<A> where
    A: RefUnwindSafe

impl<A> Send for LocalNonSecureBuilder<A>

impl<A> Sync for LocalNonSecureBuilder<A> where
    A: Sync

impl<A> Unpin for LocalNonSecureBuilder<A> where
    A: Unpin

impl<A> UnwindSafe for LocalNonSecureBuilder<A> where
    A: UnwindSafe

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.