Struct futures::stream::Empty [−][src]
#[must_use = "streams do nothing unless polled"]pub struct Empty<T> { /* fields omitted */ }
A stream which contains no elements.
This stream can be created with the stream::empty
function.
Trait Implementations
impl<T> Unpin for Empty<T>
[src]
impl<T> Unpin for Empty<T>
impl<T> Debug for Empty<T> where
T: Debug,
[src]
impl<T> Debug for Empty<T> where
T: 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<T> Stream for Empty<T>
[src]
impl<T> Stream for Empty<T>
type Item = T
Values yielded by the stream.
fn poll_next(
self: PinMut<Empty<T>>,
&mut Context
) -> Poll<Option<<Empty<T> as Stream>::Item>>
[src]
fn poll_next(
self: PinMut<Empty<T>>,
&mut Context
) -> Poll<Option<<Empty<T> 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