Trait AsyncLendingIteratorExt

Source
pub trait AsyncLendingIteratorExt: AsyncLendingIterator {
    // Provided methods
    fn map_ok<F, O>(self, func: F) -> MapOk<Self, F>
       where F: Fn(Self::Ok<'_>) -> O,
             Self: Sized { ... }
    fn try_collect<T>(self) -> impl Future<Output = Result<T, Self::Err>> + Send
       where T: Default + for<'i> Extend<Self::Ok<'i>> + Send,
             Self: Send + Sized { ... }
    fn try_collect_into<T>(
        self,
        collection: T,
    ) -> impl Future<Output = Result<T, Self::Err>> + Send
       where T: for<'i> Extend<Self::Ok<'i>> + Send,
             Self: Send + Sized { ... }
}

Provided Methods§

Source

fn map_ok<F, O>(self, func: F) -> MapOk<Self, F>
where F: Fn(Self::Ok<'_>) -> O, Self: Sized,

Source

fn try_collect<T>(self) -> impl Future<Output = Result<T, Self::Err>> + Send
where T: Default + for<'i> Extend<Self::Ok<'i>> + Send, Self: Send + Sized,

Source

fn try_collect_into<T>( self, collection: T, ) -> impl Future<Output = Result<T, Self::Err>> + Send
where T: for<'i> Extend<Self::Ok<'i>> + Send, Self: Send + Sized,

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§