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