Struct std::old_io::IncomingConnectionsUnstable [-] [+] [src]

pub struct IncomingConnections<'a, A: ?Sized + 'a> {
    // some fields omitted
}

An infinite iterator over incoming connection attempts. Calling next will block the task until a connection is attempted.

Since connection attempts can continue forever, this iterator always returns Some. The Some contains the IoResult representing whether the connection attempt was successful. A successful connection will be wrapped in Ok. A failed connection is represented as an Err.

Trait Implementations

impl<'a, T, A: ?Sized + Acceptor<T>> Iterator for IncomingConnections<'a, A>

type Item = IoResult<T>

fn next(&mut self) -> Option<IoResult<T>>

fn size_hint(&self) -> (usize, Option<usize>)