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: Clone> Clone for ServerConfig<A> where
    A: ToSocketAddrs
[src]

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

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

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.