Struct std::io::net::unix::UnixAcceptor[src]

pub struct UnixAcceptor {
    // some fields omitted
}

A value that can accept named pipe connections, returned from listen().

Methods

impl UnixAcceptor

fn set_timeout(&mut self, timeout_ms: Option<u64>)

Sets a timeout for this acceptor, after which accept() will no longer block indefinitely.

The argument specified is the amount of time, in milliseconds, into the future after which all invocations of accept() will not block (and any pending invocation will return). A value of None will clear any existing timeout.

When using this method, it is likely necessary to reset the timeout as appropriate, the timeout specified is specific to this object, not specific to the next request.

Trait Implementations

impl Acceptor<UnixStream> for UnixAcceptor

fn accept(&mut self) -> IoResult<UnixStream>

fn incoming<'r>(&'r mut self) -> IncomingConnections<'r, Self>