Struct lettre::smtp::client::InnerClient

source ·
pub struct InnerClient<S: Write + Read = NetworkStream> { /* private fields */ }
Expand description

Structure that implements the SMTP client

Implementations

Creates a new SMTP client

It does not connects to the server, but only creates the Client

Closes the SMTP transaction if possible

Sets the underlying stream

Upgrades the underlying connection to SSL/TLS

Tells if the underlying stream is currently encrypted

Set timeout

Connects to the configured server

Checks if the server is connected using the NOOP SMTP command

Sends an AUTH command with the given mechanism, and handles challenge if needed

Sends the message content

Sends an SMTP command

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.