Skip to main content

IntoAsyncIterator

Trait IntoAsyncIterator 

Source
pub trait IntoAsyncIterator {
    type Item: Send;
    type IntoAsyncIter: AsyncIterator<Item = Self::Item>;

    // Required method
    fn into_async_iter(self) -> Self::IntoAsyncIter;
}
Expand description

Trait for converting types into async iterators

Required Associated Types§

Source

type Item: Send

The type of items yielded by this async iterator

Source

type IntoAsyncIter: AsyncIterator<Item = Self::Item>

The resulting async iterator type

Required Methods§

Source

fn into_async_iter(self) -> Self::IntoAsyncIter

Convert the type into an async iterator

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> IntoAsyncIterator for Vec<T>
where T: Send + 'static,

Implementors§