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
sourceimpl<A: Clone> Clone for ServerConfig<A>where
A: ToSocketAddrs,
impl<A: Clone> Clone for ServerConfig<A>where
A: ToSocketAddrs,
sourcefn clone(&self) -> ServerConfig<A>
fn clone(&self) -> ServerConfig<A>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<A: Debug> Debug for ServerConfig<A>where
A: ToSocketAddrs,
impl<A: Debug> Debug for ServerConfig<A>where
A: ToSocketAddrs,
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more