Struct futures::stream::Select [−][src]
#[must_use = "streams do nothing unless polled"]pub struct Select<St1, St2> { /* fields omitted */ }
An adapter for merging the output of two streams.
The merged stream produces items from either of the underlying streams as they become available, and the streams are polled in a round-robin fashion.
Trait Implementations
impl<St1, St2> Unpin for Select<St1, St2> where
St1: Unpin,
St2: Unpin,
[src]
impl<St1, St2> Unpin for Select<St1, St2> where
St1: Unpin,
St2: Unpin,
impl<St1, St2> Debug for Select<St1, St2> where
St1: Debug,
St2: Debug,
[src]
impl<St1, St2> Debug for Select<St1, St2> where
St1: Debug,
St2: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<St1, St2> Stream for Select<St1, St2> where
St1: Stream,
St2: Stream<Item = <St1 as Stream>::Item>,
[src]
impl<St1, St2> Stream for Select<St1, St2> where
St1: Stream,
St2: Stream<Item = <St1 as Stream>::Item>,
type Item = <St1 as Stream>::Item
Values yielded by the stream.
fn poll_next(
self: PinMut<Select<St1, St2>>,
cx: &mut Context
) -> Poll<Option<<St1 as Stream>::Item>>
[src]
fn poll_next(
self: PinMut<Select<St1, St2>>,
cx: &mut Context
) -> Poll<Option<<St1 as Stream>::Item>>
Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None
if the stream is exhausted. Read more