pub struct Server<H> where
    H: Handler + Clone + Send
{ /* 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.

Add an authentication mechanism that will supported by the server

Set a tcp listener from an already open socket

Add ip addresses and ports to listen on. Returns an error if the given socket addresses are not valid.

server.with_addr("127.0.0.1:25")?;

Start the SMTP server and run forever

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

Performs the conversion.

Performs the conversion.

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.