Struct mailin_embedded::Server

source ·
pub struct Server<H>where
    H: Handler + Clone + Send + 'static,
{ /* private fields */ }
Expand description

Server is used to configure and start the SMTP server

Implementations

Create a new server with the given Handler

Give the server a name

Set the SSL configuration of the server

Set the size of the threadpool which is equal to the maximum number of concurrent SMTP sessions.

Set the authentication mechanism supported by the server

Start the SMTP server in a background thread at the given address

Start the SMTP server and run forever at the given address

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.