[][src]Function gotham::tls::init_server

pub fn init_server<NH, A>(
    addr: A,
    new_handler: NH,
    tls_config: ServerConfig
) -> impl Future<Item = (), Error = ()> where
    NH: NewHandler + 'static,
    A: ToSocketAddrs + 'static, 

Returns a Future used to spawn an Gotham application.

This is used internally, but exposed in case the developer intends on doing any manual wiring that isn't supported by the Gotham API. It's unlikely that this will be required in most use cases; it's mainly exposed for shutdown handling.