MapAwait

Trait MapAwait 

Source
pub trait MapAwait<T, IntoIter: IntoIterator<Item = T>> {
    // Required method
    fn map_unordered<R: Rv, RtR: Rt<R>>(
        self,
        并发: usize,
        func: impl Func<T, RtR>,
    ) -> Pin<Box<dyn Stream<Item = R> + Send>>
       where <IntoIter as IntoIterator>::IntoIter: Send + 'static;
}

Required Methods§

Source

fn map_unordered<R: Rv, RtR: Rt<R>>( self, 并发: usize, func: impl Func<T, RtR>, ) -> Pin<Box<dyn Stream<Item = R> + Send>>
where <IntoIter as IntoIterator>::IntoIter: Send + 'static,

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<T, IntoIter: IntoIterator<Item = T>> MapAwait<T, IntoIter> for IntoIter