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

pub struct Listening {
    pub socket: SocketAddr,
    // some fields omitted
}

A listening server, which can later be closed.

Fields

socket

The socket addresses that the server is bound to.

Methods

impl Listening

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

Stop the server from listening to its socket address.