Struct futures::future::IntoStream
[−]
[src]
#[must_use = "futures do nothing unless polled"]pub struct IntoStream<F> where
F: Future, { /* fields omitted */ }
A type which converts a Future
into a Stream
containing a single element.
Trait Implementations
impl<F> Stream for IntoStream<F> where
F: Future,
[src]
F: Future,
type Item = <F as Future>::Item
Values yielded by the stream.
type Error = <F as Future>::Error
Errors yielded by the stream.
fn poll_next(
&mut self,
cx: &mut Context
) -> Result<Async<Option<<IntoStream<F> as Stream>::Item>>, <IntoStream<F> as Stream>::Error>
[src]
&mut self,
cx: &mut Context
) -> Result<Async<Option<<IntoStream<F> as Stream>::Item>>, <IntoStream<F> as Stream>::Error>
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
impl<F> Debug for IntoStream<F> where
F: Debug + Future,
[src]
F: Debug + Future,
Auto Trait Implementations
impl<F> Send for IntoStream<F> where
F: Send,
F: Send,
impl<F> Sync for IntoStream<F> where
F: Sync,
F: Sync,