[]Trait amadeus::ParallelStream

#[must_use]pub trait ParallelStream where
    <Self::Task as StreamTask>::Item == Self::Item
{ type Item; type Task: StreamTask + Send; fn next_task(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>
    ) -> Poll<Option<Self::Task>>;
fn size_hint(&self) -> (usize, Option<usize>); #[must_use] fn reduce<'life0, 'async_trait, P, B, R1, R3>(
        self,
        pool: &'life0 P,
        reduce_a: R1,
        reduce_c: R3
    ) -> Pin<Box<dyn Future<Output = B> + 'async_trait>>
    where
        'life0: 'async_trait,
        B: 'async_trait,
        P: ThreadPool + 'async_trait,
        R1: ReducerSend<Self::Item> + Clone + Send + 'static + 'async_trait,
        R3: Reducer<<R1 as ReducerSend<Self::Item>>::Done, Done = B> + 'async_trait,
        Self: 'async_trait,
        Self::Task: 'static
, { ... }
#[must_use] fn pipe<'life0, 'async_trait, P, ParSink, A>(
        self,
        pool: &'life0 P,
        sink: ParSink
    ) -> Pin<Box<dyn Future<Output = A> + 'async_trait>>
    where
        'life0: 'async_trait,
        A: 'async_trait,
        P: ThreadPool + 'async_trait,
        ParSink: ParallelSink<Self::Item, Done = A> + 'async_trait,
        Self: 'async_trait,
        <<ParSink as ParallelSink<Self::Item>>::Pipe as ParallelPipe<Self::Item>>::Task: 'static,
        <ParSink as ParallelSink<Self::Item>>::ReduceA: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn fork<'life0, 'async_trait, P, ParSinkA, ParSinkB, A, B>(
        self,
        pool: &'life0 P,
        sink_a: ParSinkA,
        sink_b: ParSinkB
    ) -> Pin<Box<dyn Future<Output = (A, B)> + 'async_trait>>
    where
        'life0: 'async_trait,
        A: 'async_trait,
        B: 'async_trait,
        P: ThreadPool + 'async_trait,
        ParSinkA: ParallelSink<Self::Item, Done = A> + 'async_trait,
        ParSinkB: for<'a> ParallelSink<&'a Self::Item, Done = B> + 'static + 'async_trait,
        Self: 'async_trait,
        <<ParSinkA as ParallelSink<Self::Item>>::Pipe as ParallelPipe<Self::Item>>::Task: 'static,
        <ParSinkA as ParallelSink<Self::Item>>::ReduceA: 'static,
        <ParSinkB as ParallelSink<&'static Self::Item>>::ReduceA: 'static,
        <<ParSinkB as ParallelSink<&'static Self::Item>>::Pipe as ParallelPipe<&'static Self::Item>>::Task: 'static,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn group_by<'life0, 'async_trait, P, S, A, B>(
        self,
        pool: &'life0 P,
        sink: S
    ) -> Pin<Box<dyn Future<Output = IndexMap<A, <S as ParallelSink<B>>::Done, RandomState>> + 'async_trait>>
    where
        'life0: 'async_trait,
        A: Eq + Hash + Send + 'static + 'async_trait,
        B: 'static + 'async_trait,
        P: ThreadPool + 'async_trait,
        S: ParallelSink<B> + 'async_trait,
        Self: ParallelStream<Item = (A, B)> + 'async_trait,
        <<S as ParallelSink<B>>::Pipe as ParallelPipe<B>>::Task: Clone,
        <<S as ParallelSink<B>>::Pipe as ParallelPipe<B>>::Task: Send,
        <<S as ParallelSink<B>>::Pipe as ParallelPipe<B>>::Task: 'static,
        <S as ParallelSink<B>>::ReduceA: 'static,
        <S as ParallelSink<B>>::ReduceC: Clone,
        <S as ParallelSink<B>>::Done: Send,
        <S as ParallelSink<B>>::Done: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn collect<'life0, 'async_trait, P, B>(
        self,
        pool: &'life0 P
    ) -> Pin<Box<dyn Future<Output = B> + 'async_trait>>
    where
        'life0: 'async_trait,
        B: FromParallelStream<Self::Item> + 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: 'async_trait,
        <B as FromParallelStream<Self::Item>>::ReduceA: Send,
        <B as FromParallelStream<Self::Item>>::ReduceA: 'static,
        Self::Task: 'static
, { ... }
fn inspect<F>(self, f: F) -> Inspect<Self, F>
    where
        F: FnMut(&Self::Item) + Clone + Send + 'static
, { ... }
fn update<F>(self, f: F) -> Update<Self, F>
    where
        F: FnMut(&mut Self::Item) + Clone + Send + 'static
, { ... }
fn map<B, F>(self, f: F) -> Map<Self, F>
    where
        F: FnMut(Self::Item) -> B + Clone + Send + 'static
, { ... }
fn flat_map<B, F>(self, f: F) -> FlatMap<Self, F>
    where
        B: Stream,
        F: FnMut(Self::Item) -> B + Clone + Send + 'static
, { ... }
fn filter<F>(self, f: F) -> Filter<Self, F>
    where
        F: FnMut(&Self::Item) -> bool + Clone + Send + 'static
, { ... }
fn left_join<K, V1, V2>(
        self,
        right: impl IntoIterator<Item = (K, V2)>
    ) -> LeftJoin<Self, K, V1, V2>
    where
        K: Eq + Hash + Clone + Send + 'static,
        Self: ParallelStream<Item = (K, V1)>,
        V1: 'static,
        V2: Clone + Send + 'static
, { ... }
fn inner_join<K, V1, V2>(
        self,
        right: impl IntoIterator<Item = (K, V2)>
    ) -> InnerJoin<Self, K, V1, V2>
    where
        K: Eq + Hash + Clone + Send + 'static,
        Self: ParallelStream<Item = (K, V1)>,
        V1: 'static,
        V2: Clone + Send + 'static
, { ... }
fn chain<C>(
        self,
        chain: C
    ) -> Chain<Self, <C as IntoParallelStream>::ParStream>
    where
        C: IntoParallelStream<Item = Self::Item>
, { ... }
#[must_use] fn for_each<'life0, 'async_trait, P, F>(
        self,
        pool: &'life0 P,
        f: F
    ) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
    where
        'life0: 'async_trait,
        F: FnMut(Self::Item) + Clone + Send + 'static + 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn fold<'life0, 'async_trait, P, ID, F, B>(
        self,
        pool: &'life0 P,
        identity: ID,
        op: F
    ) -> Pin<Box<dyn Future<Output = B> + 'async_trait>>
    where
        'life0: 'async_trait,
        B: Send + 'static + 'async_trait,
        F: FnMut(B, Either<Self::Item, B>) -> B + Clone + Send + 'static + 'async_trait,
        ID: FnMut() -> B + Clone + Send + 'static + 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn histogram<'life0, 'async_trait, P>(
        self,
        pool: &'life0 P
    ) -> Pin<Box<dyn Future<Output = Vec<(Self::Item, usize)>> + 'async_trait>>
    where
        'life0: 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: Hash,
        Self::Item: Ord,
        Self::Item: Send,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn sort_n_by<'life0, 'async_trait, P, F>(
        self,
        pool: &'life0 P,
        n: usize,
        cmp: F
    ) -> Pin<Box<dyn Future<Output = Sort<Self::Item, F>> + 'async_trait>>
    where
        'life0: 'async_trait,
        F: Fn(&Self::Item, &Self::Item) -> Ordering + Clone + Send + 'static + 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: Clone,
        Self::Item: Send,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn count<'life0, 'async_trait, P>(
        self,
        pool: &'life0 P
    ) -> Pin<Box<dyn Future<Output = usize> + 'async_trait>>
    where
        'life0: 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn sum<'life0, 'async_trait, P, S>(
        self,
        pool: &'life0 P
    ) -> Pin<Box<dyn Future<Output = S> + 'async_trait>>
    where
        'life0: 'async_trait,
        P: ThreadPool + 'async_trait,
        S: Sum<Self::Item> + Sum<S> + Send + 'static + 'async_trait,
        Self: 'async_trait,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn mean<'life0, 'async_trait, P>(
        self,
        pool: &'life0 P
    ) -> Pin<Box<dyn Future<Output = f64> + 'async_trait>>
    where
        'life0: 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: ParallelStream<Item = f64> + 'async_trait,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn stddev<'life0, 'async_trait, P>(
        self,
        pool: &'life0 P
    ) -> Pin<Box<dyn Future<Output = f64> + 'async_trait>>
    where
        'life0: 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: ParallelStream<Item = f64> + 'async_trait,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn combine<'life0, 'async_trait, P, F>(
        self,
        pool: &'life0 P,
        f: F
    ) -> Pin<Box<dyn Future<Output = Option<Self::Item>> + 'async_trait>>
    where
        'life0: 'async_trait,
        F: FnMut(Self::Item, Self::Item) -> Self::Item + Clone + Send + 'static + 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: Send,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn max<'life0, 'async_trait, P>(
        self,
        pool: &'life0 P
    ) -> Pin<Box<dyn Future<Output = Option<Self::Item>> + 'async_trait>>
    where
        'life0: 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: Ord,
        Self::Item: Send,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn max_by<'life0, 'async_trait, P, F>(
        self,
        pool: &'life0 P,
        f: F
    ) -> Pin<Box<dyn Future<Output = Option<Self::Item>> + 'async_trait>>
    where
        'life0: 'async_trait,
        F: FnMut(&Self::Item, &Self::Item) -> Ordering + Clone + Send + 'static + 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: Send,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn max_by_key<'life0, 'async_trait, P, F, B>(
        self,
        pool: &'life0 P,
        f: F
    ) -> Pin<Box<dyn Future<Output = Option<Self::Item>> + 'async_trait>>
    where
        'life0: 'async_trait,
        B: Ord + 'static + 'async_trait,
        F: FnMut(&Self::Item) -> B + Clone + Send + 'static + 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: Send,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn min<'life0, 'async_trait, P>(
        self,
        pool: &'life0 P
    ) -> Pin<Box<dyn Future<Output = Option<Self::Item>> + 'async_trait>>
    where
        'life0: 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: Ord,
        Self::Item: Send,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn min_by<'life0, 'async_trait, P, F>(
        self,
        pool: &'life0 P,
        f: F
    ) -> Pin<Box<dyn Future<Output = Option<Self::Item>> + 'async_trait>>
    where
        'life0: 'async_trait,
        F: FnMut(&Self::Item, &Self::Item) -> Ordering + Clone + Send + 'static + 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: Send,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn min_by_key<'life0, 'async_trait, P, F, B>(
        self,
        pool: &'life0 P,
        f: F
    ) -> Pin<Box<dyn Future<Output = Option<Self::Item>> + 'async_trait>>
    where
        'life0: 'async_trait,
        B: Ord + 'static + 'async_trait,
        F: FnMut(&Self::Item) -> B + Clone + Send + 'static + 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: Send,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn most_frequent<'life0, 'async_trait, P>(
        self,
        pool: &'life0 P,
        n: usize,
        probability: f64,
        tolerance: f64
    ) -> Pin<Box<dyn Future<Output = Top<Self::Item, usize>> + 'async_trait>>
    where
        'life0: 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: Hash,
        Self::Item: Eq,
        Self::Item: Clone,
        Self::Item: Send,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn most_distinct<'life0, 'async_trait, P, A, B>(
        self,
        pool: &'life0 P,
        n: usize,
        probability: f64,
        tolerance: f64,
        error_rate: f64
    ) -> Pin<Box<dyn Future<Output = Top<A, HyperLogLogMagnitude<B>>> + 'async_trait>>
    where
        'life0: 'async_trait,
        A: Hash + Eq + Clone + Send + 'static + 'async_trait,
        B: Hash + 'static + 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: ParallelStream<Item = (A, B)> + 'async_trait,
        Self::Task: 'static
, { ... }
#[must_use] fn sample_unstable<'life0, 'async_trait, P>(
        self,
        pool: &'life0 P,
        samples: usize
    ) -> Pin<Box<dyn Future<Output = SampleUnstable<Self::Item>> + 'async_trait>>
    where
        'life0: 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: Send,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn all<'life0, 'async_trait, P, F>(
        self,
        pool: &'life0 P,
        f: F
    ) -> Pin<Box<dyn Future<Output = bool> + 'async_trait>>
    where
        'life0: 'async_trait,
        F: FnMut(Self::Item) -> bool + Clone + Send + 'static + 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn any<'life0, 'async_trait, P, F>(
        self,
        pool: &'life0 P,
        f: F
    ) -> Pin<Box<dyn Future<Output = bool> + 'async_trait>>
    where
        'life0: 'async_trait,
        F: FnMut(Self::Item) -> bool + Clone + Send + 'static + 'async_trait,
        P: ThreadPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: 'static,
        Self::Task: 'static
, { ... } }

Associated Types

type Item

type Task: StreamTask + Send

Loading content...

Required methods

fn next_task(
    self: Pin<&mut Self>,
    cx: &mut Context<'_>
) -> Poll<Option<Self::Task>>

fn size_hint(&self) -> (usize, Option<usize>)

Loading content...

Provided methods

#[must_use]fn reduce<'life0, 'async_trait, P, B, R1, R3>(
    self,
    pool: &'life0 P,
    reduce_a: R1,
    reduce_c: R3
) -> Pin<Box<dyn Future<Output = B> + 'async_trait>> where
    'life0: 'async_trait,
    B: 'async_trait,
    P: ThreadPool + 'async_trait,
    R1: ReducerSend<Self::Item> + Clone + Send + 'static + 'async_trait,
    R3: Reducer<<R1 as ReducerSend<Self::Item>>::Done, Done = B> + 'async_trait,
    Self: 'async_trait,
    Self::Task: 'static, 

#[must_use]fn pipe<'life0, 'async_trait, P, ParSink, A>(
    self,
    pool: &'life0 P,
    sink: ParSink
) -> Pin<Box<dyn Future<Output = A> + 'async_trait>> where
    'life0: 'async_trait,
    A: 'async_trait,
    P: ThreadPool + 'async_trait,
    ParSink: ParallelSink<Self::Item, Done = A> + 'async_trait,
    Self: 'async_trait,
    <<ParSink as ParallelSink<Self::Item>>::Pipe as ParallelPipe<Self::Item>>::Task: 'static,
    <ParSink as ParallelSink<Self::Item>>::ReduceA: 'static,
    Self::Task: 'static, 

#[must_use]fn fork<'life0, 'async_trait, P, ParSinkA, ParSinkB, A, B>(
    self,
    pool: &'life0 P,
    sink_a: ParSinkA,
    sink_b: ParSinkB
) -> Pin<Box<dyn Future<Output = (A, B)> + 'async_trait>> where
    'life0: 'async_trait,
    A: 'async_trait,
    B: 'async_trait,
    P: ThreadPool + 'async_trait,
    ParSinkA: ParallelSink<Self::Item, Done = A> + 'async_trait,
    ParSinkB: for<'a> ParallelSink<&'a Self::Item, Done = B> + 'static + 'async_trait,
    Self: 'async_trait,
    <<ParSinkA as ParallelSink<Self::Item>>::Pipe as ParallelPipe<Self::Item>>::Task: 'static,
    <ParSinkA as ParallelSink<Self::Item>>::ReduceA: 'static,
    <ParSinkB as ParallelSink<&'static Self::Item>>::ReduceA: 'static,
    <<ParSinkB as ParallelSink<&'static Self::Item>>::Pipe as ParallelPipe<&'static Self::Item>>::Task: 'static,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn group_by<'life0, 'async_trait, P, S, A, B>(
    self,
    pool: &'life0 P,
    sink: S
) -> Pin<Box<dyn Future<Output = IndexMap<A, <S as ParallelSink<B>>::Done, RandomState>> + 'async_trait>> where
    'life0: 'async_trait,
    A: Eq + Hash + Send + 'static + 'async_trait,
    B: 'static + 'async_trait,
    P: ThreadPool + 'async_trait,
    S: ParallelSink<B> + 'async_trait,
    Self: ParallelStream<Item = (A, B)> + 'async_trait,
    <<S as ParallelSink<B>>::Pipe as ParallelPipe<B>>::Task: Clone,
    <<S as ParallelSink<B>>::Pipe as ParallelPipe<B>>::Task: Send,
    <<S as ParallelSink<B>>::Pipe as ParallelPipe<B>>::Task: 'static,
    <S as ParallelSink<B>>::ReduceA: 'static,
    <S as ParallelSink<B>>::ReduceC: Clone,
    <S as ParallelSink<B>>::Done: Send,
    <S as ParallelSink<B>>::Done: 'static,
    Self::Task: 'static, 

#[must_use]fn collect<'life0, 'async_trait, P, B>(
    self,
    pool: &'life0 P
) -> Pin<Box<dyn Future<Output = B> + 'async_trait>> where
    'life0: 'async_trait,
    B: FromParallelStream<Self::Item> + 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: 'async_trait,
    <B as FromParallelStream<Self::Item>>::ReduceA: Send,
    <B as FromParallelStream<Self::Item>>::ReduceA: 'static,
    Self::Task: 'static, 

fn inspect<F>(self, f: F) -> Inspect<Self, F> where
    F: FnMut(&Self::Item) + Clone + Send + 'static, 

fn update<F>(self, f: F) -> Update<Self, F> where
    F: FnMut(&mut Self::Item) + Clone + Send + 'static, 

fn map<B, F>(self, f: F) -> Map<Self, F> where
    F: FnMut(Self::Item) -> B + Clone + Send + 'static, 

fn flat_map<B, F>(self, f: F) -> FlatMap<Self, F> where
    B: Stream,
    F: FnMut(Self::Item) -> B + Clone + Send + 'static, 

fn filter<F>(self, f: F) -> Filter<Self, F> where
    F: FnMut(&Self::Item) -> bool + Clone + Send + 'static, 

fn left_join<K, V1, V2>(
    self,
    right: impl IntoIterator<Item = (K, V2)>
) -> LeftJoin<Self, K, V1, V2> where
    K: Eq + Hash + Clone + Send + 'static,
    Self: ParallelStream<Item = (K, V1)>,
    V1: 'static,
    V2: Clone + Send + 'static, 

fn inner_join<K, V1, V2>(
    self,
    right: impl IntoIterator<Item = (K, V2)>
) -> InnerJoin<Self, K, V1, V2> where
    K: Eq + Hash + Clone + Send + 'static,
    Self: ParallelStream<Item = (K, V1)>,
    V1: 'static,
    V2: Clone + Send + 'static, 

fn chain<C>(self, chain: C) -> Chain<Self, <C as IntoParallelStream>::ParStream> where
    C: IntoParallelStream<Item = Self::Item>, 

#[must_use]fn for_each<'life0, 'async_trait, P, F>(
    self,
    pool: &'life0 P,
    f: F
) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>> where
    'life0: 'async_trait,
    F: FnMut(Self::Item) + Clone + Send + 'static + 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn fold<'life0, 'async_trait, P, ID, F, B>(
    self,
    pool: &'life0 P,
    identity: ID,
    op: F
) -> Pin<Box<dyn Future<Output = B> + 'async_trait>> where
    'life0: 'async_trait,
    B: Send + 'static + 'async_trait,
    F: FnMut(B, Either<Self::Item, B>) -> B + Clone + Send + 'static + 'async_trait,
    ID: FnMut() -> B + Clone + Send + 'static + 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn histogram<'life0, 'async_trait, P>(
    self,
    pool: &'life0 P
) -> Pin<Box<dyn Future<Output = Vec<(Self::Item, usize)>> + 'async_trait>> where
    'life0: 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: Hash,
    Self::Item: Ord,
    Self::Item: Send,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn sort_n_by<'life0, 'async_trait, P, F>(
    self,
    pool: &'life0 P,
    n: usize,
    cmp: F
) -> Pin<Box<dyn Future<Output = Sort<Self::Item, F>> + 'async_trait>> where
    'life0: 'async_trait,
    F: Fn(&Self::Item, &Self::Item) -> Ordering + Clone + Send + 'static + 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: Clone,
    Self::Item: Send,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn count<'life0, 'async_trait, P>(
    self,
    pool: &'life0 P
) -> Pin<Box<dyn Future<Output = usize> + 'async_trait>> where
    'life0: 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn sum<'life0, 'async_trait, P, S>(
    self,
    pool: &'life0 P
) -> Pin<Box<dyn Future<Output = S> + 'async_trait>> where
    'life0: 'async_trait,
    P: ThreadPool + 'async_trait,
    S: Sum<Self::Item> + Sum<S> + Send + 'static + 'async_trait,
    Self: 'async_trait,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn mean<'life0, 'async_trait, P>(
    self,
    pool: &'life0 P
) -> Pin<Box<dyn Future<Output = f64> + 'async_trait>> where
    'life0: 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: ParallelStream<Item = f64> + 'async_trait,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn stddev<'life0, 'async_trait, P>(
    self,
    pool: &'life0 P
) -> Pin<Box<dyn Future<Output = f64> + 'async_trait>> where
    'life0: 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: ParallelStream<Item = f64> + 'async_trait,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn combine<'life0, 'async_trait, P, F>(
    self,
    pool: &'life0 P,
    f: F
) -> Pin<Box<dyn Future<Output = Option<Self::Item>> + 'async_trait>> where
    'life0: 'async_trait,
    F: FnMut(Self::Item, Self::Item) -> Self::Item + Clone + Send + 'static + 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: Send,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn max<'life0, 'async_trait, P>(
    self,
    pool: &'life0 P
) -> Pin<Box<dyn Future<Output = Option<Self::Item>> + 'async_trait>> where
    'life0: 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: Ord,
    Self::Item: Send,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn max_by<'life0, 'async_trait, P, F>(
    self,
    pool: &'life0 P,
    f: F
) -> Pin<Box<dyn Future<Output = Option<Self::Item>> + 'async_trait>> where
    'life0: 'async_trait,
    F: FnMut(&Self::Item, &Self::Item) -> Ordering + Clone + Send + 'static + 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: Send,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn max_by_key<'life0, 'async_trait, P, F, B>(
    self,
    pool: &'life0 P,
    f: F
) -> Pin<Box<dyn Future<Output = Option<Self::Item>> + 'async_trait>> where
    'life0: 'async_trait,
    B: Ord + 'static + 'async_trait,
    F: FnMut(&Self::Item) -> B + Clone + Send + 'static + 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: Send,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn min<'life0, 'async_trait, P>(
    self,
    pool: &'life0 P
) -> Pin<Box<dyn Future<Output = Option<Self::Item>> + 'async_trait>> where
    'life0: 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: Ord,
    Self::Item: Send,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn min_by<'life0, 'async_trait, P, F>(
    self,
    pool: &'life0 P,
    f: F
) -> Pin<Box<dyn Future<Output = Option<Self::Item>> + 'async_trait>> where
    'life0: 'async_trait,
    F: FnMut(&Self::Item, &Self::Item) -> Ordering + Clone + Send + 'static + 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: Send,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn min_by_key<'life0, 'async_trait, P, F, B>(
    self,
    pool: &'life0 P,
    f: F
) -> Pin<Box<dyn Future<Output = Option<Self::Item>> + 'async_trait>> where
    'life0: 'async_trait,
    B: Ord + 'static + 'async_trait,
    F: FnMut(&Self::Item) -> B + Clone + Send + 'static + 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: Send,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn most_frequent<'life0, 'async_trait, P>(
    self,
    pool: &'life0 P,
    n: usize,
    probability: f64,
    tolerance: f64
) -> Pin<Box<dyn Future<Output = Top<Self::Item, usize>> + 'async_trait>> where
    'life0: 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: Hash,
    Self::Item: Eq,
    Self::Item: Clone,
    Self::Item: Send,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn most_distinct<'life0, 'async_trait, P, A, B>(
    self,
    pool: &'life0 P,
    n: usize,
    probability: f64,
    tolerance: f64,
    error_rate: f64
) -> Pin<Box<dyn Future<Output = Top<A, HyperLogLogMagnitude<B>>> + 'async_trait>> where
    'life0: 'async_trait,
    A: Hash + Eq + Clone + Send + 'static + 'async_trait,
    B: Hash + 'static + 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: ParallelStream<Item = (A, B)> + 'async_trait,
    Self::Task: 'static, 

#[must_use]fn sample_unstable<'life0, 'async_trait, P>(
    self,
    pool: &'life0 P,
    samples: usize
) -> Pin<Box<dyn Future<Output = SampleUnstable<Self::Item>> + 'async_trait>> where
    'life0: 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: Send,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn all<'life0, 'async_trait, P, F>(
    self,
    pool: &'life0 P,
    f: F
) -> Pin<Box<dyn Future<Output = bool> + 'async_trait>> where
    'life0: 'async_trait,
    F: FnMut(Self::Item) -> bool + Clone + Send + 'static + 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn any<'life0, 'async_trait, P, F>(
    self,
    pool: &'life0 P,
    f: F
) -> Pin<Box<dyn Future<Output = bool> + 'async_trait>> where
    'life0: 'async_trait,
    F: FnMut(Self::Item) -> bool + Clone + Send + 'static + 'async_trait,
    P: ThreadPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: 'static,
    Self::Task: 'static, 

Loading content...

Implementations on Foreign Types

impl<S> ParallelStream for DistParStream<S> where
    S: DistributedStream
[src]

type Item = <S as DistributedStream>::Item

type Task = <S as DistributedStream>::Task

impl<A, B> ParallelStream for Sum2<A, B> where
    A: ParallelStream,
    B: ParallelStream<Item = <A as ParallelStream>::Item>, 
[src]

type Item = <A as ParallelStream>::Item

type Task = Sum2<<A as ParallelStream>::Task, <B as ParallelStream>::Task>

Loading content...

Implementors

impl ParallelStream for Never[src]

type Item = Never

type Task = Never

impl<A, B> ParallelStream for Pipe<A, B> where
    A: ParallelStream,
    B: ParallelPipe<<A as ParallelStream>::Item>, 
[src]

type Item = <B as ParallelPipe<<A as ParallelStream>::Item>>::Output

type Task = JoinTask<<A as ParallelStream>::Task, <B as ParallelPipe<<A as ParallelStream>::Item>>::Task>

impl<A, B> ParallelStream for Chain<A, B> where
    A: ParallelStream,
    B: ParallelStream<Item = <A as ParallelStream>::Item>, 
[src]

type Item = <A as ParallelStream>::Item

type Task = ChainTask<<A as ParallelStream>::Task, <B as ParallelStream>::Task>

impl<A, B, C, RefAItem> ParallelStream for Fork<A, B, C, RefAItem> where
    A: ParallelStream,
    B: ParallelPipe<<A as ParallelStream>::Item>,
    C: ParallelPipe<RefAItem>,
    RefAItem: 'static, 
[src]

type Item = Sum2<<B as ParallelPipe<<A as ParallelStream>::Item>>::Output, <C as ParallelPipe<RefAItem>>::Output>

type Task = JoinTask<<A as ParallelStream>::Task, <B as ParallelPipe<<A as ParallelStream>::Item>>::Task, <C as ParallelPipe<RefAItem>>::Task, RefAItem>

impl<I> ParallelStream for IterParStream<I> where
    I: Iterator,
    <I as Iterator>::Item: Send,
    <I as Iterator>::Item: 'static, 
[src]

type Item = <I as Iterator>::Item

type Task = IterStreamTask<<I as Iterator>::Item>

impl<I, T, E, U> ParallelStream for IntoStream<I, U> where
    I: ParallelStream<Item = Result<T, E>>,
    T: Into<U>,
    U: 'static, 
[src]

type Item = Result<U, E>

type Task = IntoTask<I::Task, U>

impl<P, F> ParallelStream for Filter<P, F> where
    F: for<'a> FnMut<(&'a <P as ParallelStream>::Item,), Output = bool> + Clone + Send + 'static,
    P: ParallelStream
[src]

type Item = <P as ParallelStream>::Item

type Task = FilterTask<<P as ParallelStream>::Task, F>

impl<P, F> ParallelStream for Inspect<P, F> where
    F: for<'a> FnMut<(&'a <P as ParallelStream>::Item,), Output = ()> + Clone + Send + 'static,
    P: ParallelStream
[src]

type Item = <P as ParallelStream>::Item

type Task = InspectTask<<P as ParallelStream>::Task, F>

impl<P, F> ParallelStream for Update<P, F> where
    F: for<'a> FnMut<(&'a mut <P as ParallelStream>::Item,), Output = ()> + Clone + Send + 'static,
    P: ParallelStream
[src]

type Item = <P as ParallelStream>::Item

type Task = UpdateTask<<P as ParallelStream>::Task, F>

impl<P, F, R> ParallelStream for FilterMapSync<P, F> where
    F: FnMut<(<P as ParallelStream>::Item,), Output = Option<R>> + Clone + Send + 'static,
    P: ParallelStream
[src]

type Item = R

type Task = FilterMapSyncTask<<P as ParallelStream>::Task, F>

impl<P, F, R> ParallelStream for FlatMap<P, F> where
    F: FnMut<(<P as ParallelStream>::Item,), Output = R> + Clone + Send + 'static,
    P: ParallelStream,
    R: Stream
[src]

type Item = <R as Stream>::Item

type Task = FlatMapTask<<P as ParallelStream>::Task, F>

impl<P, F, R> ParallelStream for FlatMapSync<P, F> where
    F: FnMut<(<P as ParallelStream>::Item,), Output = R> + Clone + Send + 'static,
    P: ParallelStream,
    R: Iterator
[src]

type Item = <R as Iterator>::Item

type Task = FlatMapSyncTask<<P as ParallelStream>::Task, F>

impl<P, F, R> ParallelStream for Map<P, F> where
    F: FnMut<(<P as ParallelStream>::Item,), Output = R> + Clone + Send + 'static,
    P: ParallelStream
[src]

type Item = R

type Task = MapTask<<P as ParallelStream>::Task, F>

impl<P, F, R> ParallelStream for MapSync<P, F> where
    F: FnMut<(<P as ParallelStream>::Item,), Output = R> + Clone + Send + 'static,
    P: ParallelStream
[src]

type Item = R

type Task = MapSyncTask<<P as ParallelStream>::Task, F>

impl<P, K, V1, V2> ParallelStream for InnerJoin<P, K, V1, V2> where
    K: Eq + Hash + Clone + Send + 'static,
    P: ParallelStream<Item = (K, V1)>,
    V1: 'static,
    V2: Clone + Send + 'static, 
[src]

type Item = (K, ImplIter<V1>, ImplIter<V2>)

type Task = <FilterMapSync<P, InnerJoinClosure<K, V1, V2>> as ParallelStream>::Task

impl<P, K, V1, V2> ParallelStream for LeftJoin<P, K, V1, V2> where
    K: Eq + Hash + Clone + Send + 'static,
    P: ParallelStream<Item = (K, V1)>,
    V1: 'static,
    V2: Clone + Send + 'static, 
[src]

type Item = (K, V1, ImplIter<V2>)

type Task = <MapSync<P, LeftJoinClosure<K, V1, V2>> as ParallelStream>::Task

Loading content...