Skip to main content

AsyncIteratorExt

Trait AsyncIteratorExt 

Source
pub trait AsyncIteratorExt<R: Send, E: Send, F: Future<Output = Result<R, E>> + Send>:
    Iterator<Item = F>
    + Sized
    + Send {
    // Provided method
    fn try_collect_async_vec<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<R>, E>> + Send + 'async_trait>>
       where Self: Sized + 'async_trait { ... }
}

Provided Methods§

Source

fn try_collect_async_vec<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Vec<R>, E>> + Send + 'async_trait>>
where Self: Sized + 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<R: Send, E: Send, F: Future<Output = Result<R, E>> + Send, T: Iterator<Item = F> + Sized + Send> AsyncIteratorExt<R, E, F> for T