Struct tiny_http::ServerConfig
source ·
[−]pub struct ServerConfig<A> where
A: ToSocketAddrs, {
pub addr: A,
pub ssl: Option<SslConfig>,
}
Expand description
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
Auto Trait Implementations
impl<A> RefUnwindSafe for ServerConfig<A> where
A: RefUnwindSafe,
impl<A> Send for ServerConfig<A> where
A: Send,
impl<A> Sync for ServerConfig<A> where
A: Sync,
impl<A> Unpin for ServerConfig<A> where
A: Unpin,
impl<A> UnwindSafe for ServerConfig<A> where
A: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more