[][src]Trait tower_web::net::ConnectionStream

pub trait ConnectionStream {
    type Item: Connection;
    fn poll_next(&mut self) -> Poll<Option<Self::Item>, Error>;
}

An asynchronous stream of connections.

Associated Types

Connection type yielded each iteration.

Required Methods

Attempt to resolve the next connection, registering the current task for wakeup if one is not yet available.

Implementors

impl<T> ConnectionStream for T where
    T: Stream<Error = Error>,
    T::Item: Connection
[src]