futures_concurrency::concurrent_stream

Trait FromConcurrentStream

source
pub trait FromConcurrentStream<A>: Sized {
    // Required method
    async fn from_concurrent_stream<T>(iter: T) -> Self
       where T: IntoConcurrentStream<Item = A>;
}
Expand description

Conversion from a ConcurrentStream

Required Methods§

source

async fn from_concurrent_stream<T>(iter: T) -> Self
where T: IntoConcurrentStream<Item = A>,

Creates a value from a concurrent iterator.

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.

Implementations on Foreign Types§

source§

impl<T> FromConcurrentStream<T> for Vec<T>

source§

async fn from_concurrent_stream<S>(iter: S) -> Self
where S: IntoConcurrentStream<Item = T>,

source§

impl<T, E> FromConcurrentStream<Result<T, E>> for Result<Vec<T>, E>

source§

async fn from_concurrent_stream<S>(iter: S) -> Self
where S: IntoConcurrentStream<Item = Result<T, E>>,

Implementors§