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