Struct futures_util::future::IntoStream
[−]
[src]
#[must_use = "futures do nothing unless polled"]pub struct IntoStream<F: Future> { /* fields omitted */ }
A type which converts a Future
into a Stream
containing a single element.
Trait Implementations
impl<F: Debug + Future> Debug for IntoStream<F>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<F: Future> Stream for IntoStream<F>
[src]
type Item = F::Item
Values yielded by the stream.
type Error = F::Error
Errors yielded by the stream.
fn poll_next(
&mut self,
cx: &mut Context
) -> Poll<Option<Self::Item>, Self::Error>
[src]
&mut self,
cx: &mut Context
) -> Poll<Option<Self::Item>, Self::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
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,