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) -> Result<()>

Stop the server from listening to its socket address.

Trait Implementations

impl Debug for Listening

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

impl Drop for Listening

fn drop(&mut self)