Source

Trait Source 

Source
pub trait Source: Clone + Debug {
    type Item;
    type Error: Error;
    type ParStream: ParallelStream<Item = Result<Self::Item, Self::Error>>;
    type DistStream: DistributedStream<Item = Result<Self::Item, Self::Error>>;

    // Required methods
    fn par_stream(self) -> Self::ParStream;
    fn dist_stream(self) -> Self::DistStream;
}

Required Associated Types§

Required Methods§

Source

fn par_stream(self) -> Self::ParStream

Source

fn dist_stream(self) -> Self::DistStream

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§