Skip to main content

ToSyncBoxStream

Trait ToSyncBoxStream 

Source
pub trait ToSyncBoxStream<T> {
    // Required methods
    fn to_stream(self) -> SyncBoxStream<'static, T>;
    fn into_stream_ok(self) -> Result<SyncBoxStream<'static, T>>;
}

Required Methods§

Source

fn to_stream(self) -> SyncBoxStream<'static, T>

Source

fn into_stream_ok(self) -> Result<SyncBoxStream<'static, T>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> ToSyncBoxStream<T> for Vec<T>
where T: Send + Sync + 'static,

Source§

fn to_stream(self) -> SyncBoxStream<'static, T>

Source§

fn into_stream_ok(self) -> Result<SyncBoxStream<'static, T>>

Implementors§