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

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

A listening server, which can later be closed.

Fields

socket: SocketAddr

The socket addresses that the server is bound to.

Methods

impl Listening
[src]

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

Stop the server from listening to its socket address.

Trait Implementations

impl Debug for Listening
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Drop for Listening
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more