pub trait ConnectionStream {
type Item: Connection;
// Required method
fn poll_next(&mut self) -> Poll<Option<Self::Item>, Error>;
}Expand description
An asynchronous stream of connections.
Required Associated Types§
Sourcetype Item: Connection
type Item: Connection
Connection type yielded each iteration.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".