Struct hyperlocal::UnixSocketListener
[−]
[src]
pub struct UnixSocketListener(pub UnixListener);
A type which implements hyper's NetworkListener trait
Methods
impl UnixSocketListener
[src]
fn new<P: AsRef<Path>>(addr: P) -> Result<UnixSocketListener>
Start listening to an address over HTTP.
Trait Implementations
impl Debug for UnixSocketListener
[src]
impl Clone for UnixSocketListener
[src]
fn clone(&self) -> UnixSocketListener
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl NetworkListener for UnixSocketListener
[src]
type Stream = UnixSocketStream
The stream produced for each connection.
fn accept(&mut self) -> Result<UnixSocketStream>
Returns an iterator of streams.
fn local_addr(&mut self) -> Result<SocketAddr>
Get the address this Listener ended up listening on.
fn incoming(&mut self) -> NetworkConnections<Self>
Returns an iterator over incoming connections.