[][src]Struct mailin_embedded::Server

pub struct Server<H> where
    H: Handler + Clone + Send + 'static, 
{ /* fields omitted */ }

Server is used to configure and start the SMTP server

Methods

impl<H> Server<H> where
    H: Handler + Clone + Send + 'static, 
[src]

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

impl<H> Send for Server<H>

impl<H> Sync for Server<H> where
    H: Sync

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]