Struct mail_send::SmtpClient

source ·
pub struct SmtpClient<T: AsyncRead + AsyncWrite> {
    pub stream: T,
    pub timeout: Duration,
}
Expand description

SMTP client builder

Fields§

§stream: T§timeout: Duration

Implementations§

Sends a command to the SMTP server and waits for a reply.

Pipelines multiple command to the SMTP server and waits for a reply.

Connects to a remote host address

Connects to a remote host address using the provided local IP

Sends a EHLO command to the server.

Sends a EHLO command to the server.

Sends a MAIL FROM command to the server.

Sends a RCPT TO command to the server.

Sends a DATA command to the server.

Sends a BDAT command to the server.

Sends a RSET command to the server.

Sends a QUIT command to the server.

Sends a message to the server.

Sends a message to the server.

Upgrade the connection to TLS.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Should always be Self
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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more