Trait IntoVec

Source
pub trait IntoVec: StreamExt {
    // Provided method
    fn into_vec<'async_trait, T>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<T>>> + Send + 'async_trait>>
       where Self: Sized + Send + 'async_trait,
             T: Send + 'async_trait,
             Vec<Result<T>>: Extend<Self::Item> { ... }
}

Provided Methods§

Source

fn into_vec<'async_trait, T>( self, ) -> Pin<Box<dyn Future<Output = Result<Vec<T>>> + Send + 'async_trait>>
where Self: Sized + Send + 'async_trait, T: Send + 'async_trait, Vec<Result<T>>: Extend<Self::Item>,

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> IntoVec for T
where T: StdStream + ?Sized,