[][src]Trait associated_async_io::AsyncIterator

pub trait AsyncIterator {
    type Item;
    type Fut: Future<Output = Option<Self::Item>>;
    fn next(&mut self) -> Self::Fut;
}

Async version of std::iter::Iterator.

Associated Types

type Item

The item returned by next.

type Fut: Future<Output = Option<Self::Item>>

The future returned by next.

Loading content...

Required methods

fn next(&mut self) -> Self::Fut

Yield the next item.

Loading content...

Implementors

Loading content...