Skip to main content

FromDistributedStream

Trait FromDistributedStream 

Source
pub trait FromDistributedStream<T>: Sized {
    type ReduceA: ReducerSend<T> + Clone + ProcessSend;
    type ReduceB: ReducerProcessSend<<Self::ReduceA as ReducerSend<T>>::Done> + Clone + ProcessSend;
    type ReduceC: Reducer<<Self::ReduceB as ReducerProcessSend<<Self::ReduceA as ReducerSend<T>>::Done>>::Done, Done = Self>;

    // Required method
    fn reducers() -> (Self::ReduceA, Self::ReduceB, Self::ReduceC);
}

Required Associated Types§

Required Methods§

Source

fn reducers() -> (Self::ReduceA, Self::ReduceB, Self::ReduceC)

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl FromDistributedStream<()> for ()

Source§

impl FromDistributedStream<String> for String

Source§

impl FromDistributedStream<char> for String

Source§

impl<K, V, S> FromDistributedStream<(K, V)> for HashMap<K, V, S>
where K: Eq + Hash + ProcessSend + 'static, V: ProcessSend + 'static, S: BuildHasher + Default + Send + 'static,

Source§

impl<K, V> FromDistributedStream<(K, V)> for BTreeMap<K, V>
where K: Ord + ProcessSend + 'static, V: ProcessSend + 'static,

Source§

impl<T, C: FromDistributedStream<T>, E> FromDistributedStream<Result<T, E>> for Result<C, E>
where E: ProcessSend + 'static,

Source§

impl<T, C: FromDistributedStream<T>> FromDistributedStream<Option<T>> for Option<C>

Source§

impl<T, S> FromDistributedStream<T> for HashSet<T, S>
where T: Eq + Hash + ProcessSend + 'static, S: BuildHasher + Default + Send + 'static,

Source§

impl<T> FromDistributedStream<T> for BTreeSet<T>
where T: Ord + ProcessSend + 'static,

Source§

impl<T> FromDistributedStream<T> for BinaryHeap<T>
where T: ProcessSend + 'static + Ord,

Source§

impl<T> FromDistributedStream<T> for LinkedList<T>
where T: ProcessSend + 'static,

Source§

impl<T> FromDistributedStream<T> for Vec<T>
where T: ProcessSend + 'static,

Source§

impl<T> FromDistributedStream<T> for VecDeque<T>
where T: ProcessSend + 'static,

Implementors§