Struct hyper::server::ListeningExperimental [-]  [+] [src]

pub struct Listening<A = HttpAcceptor> {
    pub sockets: Vec<SocketAddr>,
    // some fields omitted
}

A listening server, which can later be closed.

Fields

sockets

The socket addresses that the server is bound to.

Methods

impl<A: NetworkAcceptor<S>, S: NetworkStream> Listening<A>

fn close(&mut self) -> HttpResult<()>

Stop the server from listening to all of its socket addresses.

If closing any of the servers acceptors fails, this function returns Err and does not close the rest of the acceptors.