Struct hyper::server::Listening
[-]
[+]
[src]
pub struct Listening<A = HttpAcceptor> { 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<A: NetworkAcceptor> Listening<A>
fn await(&mut self)
Causes the current thread to wait for this listening to complete.
fn close(&mut self) -> HttpResult<()>
Stop the server from listening to its socket address.