Struct iron::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

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

Warning: This function doesn't work. The server remains listening after you called it. See https://github.com/hyperium/hyper/issues/338 for more details.

Stop the server from listening to its socket address.

Trait Implementations

impl Debug for Listening

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

Formats the value using the given formatter.

impl Drop for Listening

fn drop(&mut self)