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
addr: A
The addresses to listen to.
ssl: Option<SslConfig>
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]
impl<A: Clone> Clone for ServerConfig<A> where A: ToSocketAddrs
[src]
fn clone(&self) -> ServerConfig<A>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more