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]

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

Formats the value using the given formatter.

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.