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

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]

pub fn close(&mut self) -> Result<()>[src]

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 Drop for Listening[src]

impl Debug for Listening[src]

Auto Trait Implementations

impl Send for Listening

impl Sync for Listening

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any
[src]

fn get_type(&self) -> TypeId[src]

Get the TypeId of this object.