pub fn bind<A: ToSocketAddrs>( addr: A ) -> Result<HttpServer> {
        let addr = try!(to_addr(addr));
        let listener = try!(TcpListener::bind(&addr));
        Ok(HttpServer {
            tcp_listener: listener,
        })
    }
/// Creates a new HttpServer and binds it to an address
Creates a new HttpServer and binds it to an address
Creates a new HttpServer and binds it to an address
pub fn bind<A: ToSocketAddrs>( addr: A ) -> Result<HttpServer> {
        let addr = try!(to_addr(addr));
        let listener = try!(TcpListener::bind(&addr));
        Ok(HttpServer {
            tcp_listener: listener,
        })
    }
pub fn bind < A : ToSocketAddrs > ( addr : A ) -> Result < HttpServer > { let addr = try ! ( to_addr ( addr ) ) ; let listener = try ! ( TcpListener bind ( addr ) ) ; Ok ( HttpServer { tcp_listener : listener , } ) }
Creates a new HttpServer and binds it to an address
Creates a new HttpServer and binds it to an address
addr
A
addr
A