Struct tiny_http::ServerConfig [] [src]

pub struct ServerConfig<A> where
    A: ToSocketAddrs
{ pub addr: A, pub ssl: Option<SslConfig>, }

Represents the parameters required to create a server.

Fields

The addresses to listen to.

If Some, then the server will use SSL to encode the communications.

Trait Implementations

impl<A: Debug> Debug for ServerConfig<A> where
    A: ToSocketAddrs
[src]

[src]

Formats the value using the given formatter.

impl<A: Clone> Clone for ServerConfig<A> where
    A: ToSocketAddrs
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more