[][src]Trait amadeus::DistributedStream

#[must_use]pub trait DistributedStream where
    <Self::Task as StreamTask>::Item == Self::Item
{ type Item; type Task: StreamTask + ProcessSend; fn size_hint(&self) -> (usize, Option<usize>);
fn next_task(&mut self) -> Option<Self::Task>; fn inspect<F>(self, f: F) -> Inspect<Self, F>
    where
        F: FnMut(&Self::Item) + Clone + ProcessSend + 'static
, { ... }
fn update<F>(self, f: F) -> Update<Self, F>
    where
        F: FnMut(&mut Self::Item) + Clone + ProcessSend + 'static
, { ... }
fn map<B, F>(self, f: F) -> Map<Self, F>
    where
        F: FnMut(Self::Item) -> B + Clone + ProcessSend + 'static
, { ... }
fn flat_map<B, F>(self, f: F) -> FlatMap<Self, F>
    where
        B: Stream,
        F: FnMut(Self::Item) -> B + Clone + ProcessSend + 'static
, { ... }
fn filter<F, Fut>(self, f: F) -> Filter<Self, F>
    where
        F: FnMut(&Self::Item) -> Fut + Clone + ProcessSend + 'static,
        Fut: Future<Output = bool>
, { ... }
fn chain<C>(
        self,
        chain: C
    ) -> Chain<Self, <C as IntoDistributedStream>::DistStream>
    where
        C: IntoDistributedStream<Item = Self::Item>
, { ... }
#[must_use] fn reduce<'life0, 'async_trait, P, B, R1F, R2F, R1, R2, R3>(
        self,
        pool: &'life0 P,
        reduce_a_factory: R1F,
        reduce_b_factory: R2F,
        reduce_c: R3
    ) -> Pin<Box<dyn Future<Output = B> + 'async_trait>>
    where
        'life0: 'async_trait,
        B: 'async_trait,
        P: ProcessPool + 'async_trait,
        R1: ReducerSend<Item = Self::Item> + Send + 'static + 'async_trait,
        R1F: Factory<Item = R1> + Clone + ProcessSend + 'static + 'async_trait,
        R2: ReducerProcessSend<Item = <R1 as Reducer>::Output> + ProcessSend + 'static + 'async_trait,
        R2F: Factory<Item = R2> + 'async_trait,
        R3: Reducer<Item = <R2 as ReducerProcessSend>::Output, Output = B> + 'async_trait,
        Self: 'async_trait,
        Self::Task: 'static
, { ... }
#[must_use] fn pipe<'life0, 'async_trait, P, DistSink, A>(
        self,
        pool: &'life0 P,
        sink: DistSink
    ) -> Pin<Box<dyn Future<Output = A> + 'async_trait>>
    where
        'life0: 'async_trait,
        A: 'async_trait,
        DistSink: DistributedSink<Self::Item, Output = A> + 'async_trait,
        P: ProcessPool + 'async_trait,
        Self: 'async_trait,
        <<DistSink as DistributedSink<Self::Item>>::Pipe as DistributedPipe<Self::Item>>::Task: 'static,
        <DistSink as DistributedSink<Self::Item>>::ReduceAFactory: 'static,
        <DistSink as DistributedSink<Self::Item>>::ReduceA: 'static,
        <DistSink as DistributedSink<Self::Item>>::ReduceB: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn fork<'life0, 'async_trait, P, DistSinkA, DistSinkB, A, B>(
        self,
        pool: &'life0 P,
        sink_a: DistSinkA,
        sink_b: DistSinkB
    ) -> Pin<Box<dyn Future<Output = (A, B)> + 'async_trait>>
    where
        'life0: 'async_trait,
        A: 'async_trait,
        B: 'async_trait,
        DistSinkA: DistributedSink<Self::Item, Output = A> + 'async_trait,
        DistSinkB: for<'a> DistributedSink<&'a Self::Item, Output = B> + 'static + 'async_trait,
        P: ProcessPool + 'async_trait,
        Self: 'async_trait,
        <<DistSinkA as DistributedSink<Self::Item>>::Pipe as DistributedPipe<Self::Item>>::Task: 'static,
        <DistSinkA as DistributedSink<Self::Item>>::ReduceAFactory: 'static,
        <DistSinkA as DistributedSink<Self::Item>>::ReduceA: 'static,
        <DistSinkA as DistributedSink<Self::Item>>::ReduceB: 'static,
        <DistSinkB as DistributedSink<&'static Self::Item>>::ReduceAFactory: 'static,
        <DistSinkB as DistributedSink<&'static Self::Item>>::ReduceA: 'static,
        <DistSinkB as DistributedSink<&'static Self::Item>>::ReduceB: 'static,
        <<DistSinkB as DistributedSink<&'static Self::Item>>::Pipe as DistributedPipe<&'static Self::Item>>::Task: 'static,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[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 + ProcessSend + 'static + 'async_trait,
        P: ProcessPool + '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: ProcessSend + 'static + 'async_trait,
        F: FnMut(B, Either<Self::Item, B>) -> B + Clone + ProcessSend + 'static + 'async_trait,
        ID: FnMut() -> B + Clone + ProcessSend + 'static + 'async_trait,
        P: ProcessPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: 'static,
        Self::Task: 'static
, { ... }
#[must_use] fn group_by<'life0, 'async_trait, P, A, B, ID, F, C>(
        self,
        pool: &'life0 P,
        identity: ID,
        op: F
    ) -> Pin<Box<dyn Future<Output = HashMap<A, C, RandomState>> + 'async_trait>>
    where
        'life0: 'async_trait,
        A: Eq + Hash + ProcessSend + 'static + 'async_trait,
        B: 'static + 'async_trait,
        C: ProcessSend + 'static + 'async_trait,
        F: FnMut(C, Either<B, C>) -> C + Clone + ProcessSend + 'static + 'async_trait,
        ID: FnMut() -> C + Clone + ProcessSend + 'static + 'async_trait,
        P: ProcessPool + 'async_trait,
        Self: DistributedStream<Item = (A, B)> + '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: ProcessPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: Hash,
        Self::Item: Ord,
        Self::Item: ProcessSend,
        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: ProcessPool + '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: ProcessPool + 'async_trait,
        S: Sum<Self::Item> + Sum<S> + ProcessSend + 'static + 'async_trait,
        Self: '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 + ProcessSend + 'static + 'async_trait,
        P: ProcessPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: ProcessSend,
        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: ProcessPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: Ord,
        Self::Item: ProcessSend,
        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 + ProcessSend + 'static + 'async_trait,
        P: ProcessPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: ProcessSend,
        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 + ProcessSend + 'static + 'async_trait,
        P: ProcessPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: ProcessSend,
        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: ProcessPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: Ord,
        Self::Item: ProcessSend,
        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 + ProcessSend + 'static + 'async_trait,
        P: ProcessPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: ProcessSend,
        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 + ProcessSend + 'static + 'async_trait,
        P: ProcessPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: ProcessSend,
        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: ProcessPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: Hash,
        Self::Item: Eq,
        Self::Item: Clone,
        Self::Item: ProcessSend,
        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 + ProcessSend + 'static + 'async_trait,
        B: Hash + 'static + 'async_trait,
        P: ProcessPool + 'async_trait,
        Self: DistributedStream<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: ProcessPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: ProcessSend,
        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 + ProcessSend + 'static + 'async_trait,
        P: ProcessPool + '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 + ProcessSend + 'static + 'async_trait,
        P: ProcessPool + 'async_trait,
        Self: 'async_trait,
        Self::Item: '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: FromDistributedStream<Self::Item> + 'async_trait,
        P: ProcessPool + 'async_trait,
        Self: 'async_trait,
        <B as FromDistributedStream<Self::Item>>::ReduceAFactory: ProcessSend,
        <B as FromDistributedStream<Self::Item>>::ReduceAFactory: 'static,
        <B as FromDistributedStream<Self::Item>>::ReduceA: ProcessSend,
        <B as FromDistributedStream<Self::Item>>::ReduceA: 'static,
        <B as FromDistributedStream<Self::Item>>::ReduceB: ProcessSend,
        <B as FromDistributedStream<Self::Item>>::ReduceB: 'static,
        Self::Task: 'static
, { ... } }

Associated Types

Loading content...

Required methods

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

fn next_task(&mut self) -> Option<Self::Task>

Loading content...

Provided methods

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

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

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

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

fn filter<F, Fut>(self, f: F) -> Filter<Self, F> where
    F: FnMut(&Self::Item) -> Fut + Clone + ProcessSend + 'static,
    Fut: Future<Output = bool>, 

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

#[must_use]fn reduce<'life0, 'async_trait, P, B, R1F, R2F, R1, R2, R3>(
    self,
    pool: &'life0 P,
    reduce_a_factory: R1F,
    reduce_b_factory: R2F,
    reduce_c: R3
) -> Pin<Box<dyn Future<Output = B> + 'async_trait>> where
    'life0: 'async_trait,
    B: 'async_trait,
    P: ProcessPool + 'async_trait,
    R1: ReducerSend<Item = Self::Item> + Send + 'static + 'async_trait,
    R1F: Factory<Item = R1> + Clone + ProcessSend + 'static + 'async_trait,
    R2: ReducerProcessSend<Item = <R1 as Reducer>::Output> + ProcessSend + 'static + 'async_trait,
    R2F: Factory<Item = R2> + 'async_trait,
    R3: Reducer<Item = <R2 as ReducerProcessSend>::Output, Output = B> + 'async_trait,
    Self: 'async_trait,
    Self::Task: 'static, 

#[must_use]fn pipe<'life0, 'async_trait, P, DistSink, A>(
    self,
    pool: &'life0 P,
    sink: DistSink
) -> Pin<Box<dyn Future<Output = A> + 'async_trait>> where
    'life0: 'async_trait,
    A: 'async_trait,
    DistSink: DistributedSink<Self::Item, Output = A> + 'async_trait,
    P: ProcessPool + 'async_trait,
    Self: 'async_trait,
    <<DistSink as DistributedSink<Self::Item>>::Pipe as DistributedPipe<Self::Item>>::Task: 'static,
    <DistSink as DistributedSink<Self::Item>>::ReduceAFactory: 'static,
    <DistSink as DistributedSink<Self::Item>>::ReduceA: 'static,
    <DistSink as DistributedSink<Self::Item>>::ReduceB: 'static,
    Self::Task: 'static, 

#[must_use]fn fork<'life0, 'async_trait, P, DistSinkA, DistSinkB, A, B>(
    self,
    pool: &'life0 P,
    sink_a: DistSinkA,
    sink_b: DistSinkB
) -> Pin<Box<dyn Future<Output = (A, B)> + 'async_trait>> where
    'life0: 'async_trait,
    A: 'async_trait,
    B: 'async_trait,
    DistSinkA: DistributedSink<Self::Item, Output = A> + 'async_trait,
    DistSinkB: for<'a> DistributedSink<&'a Self::Item, Output = B> + 'static + 'async_trait,
    P: ProcessPool + 'async_trait,
    Self: 'async_trait,
    <<DistSinkA as DistributedSink<Self::Item>>::Pipe as DistributedPipe<Self::Item>>::Task: 'static,
    <DistSinkA as DistributedSink<Self::Item>>::ReduceAFactory: 'static,
    <DistSinkA as DistributedSink<Self::Item>>::ReduceA: 'static,
    <DistSinkA as DistributedSink<Self::Item>>::ReduceB: 'static,
    <DistSinkB as DistributedSink<&'static Self::Item>>::ReduceAFactory: 'static,
    <DistSinkB as DistributedSink<&'static Self::Item>>::ReduceA: 'static,
    <DistSinkB as DistributedSink<&'static Self::Item>>::ReduceB: 'static,
    <<DistSinkB as DistributedSink<&'static Self::Item>>::Pipe as DistributedPipe<&'static Self::Item>>::Task: 'static,
    Self::Item: 'static,
    Self::Task: 'static, 

#[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 + ProcessSend + 'static + 'async_trait,
    P: ProcessPool + '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: ProcessSend + 'static + 'async_trait,
    F: FnMut(B, Either<Self::Item, B>) -> B + Clone + ProcessSend + 'static + 'async_trait,
    ID: FnMut() -> B + Clone + ProcessSend + 'static + 'async_trait,
    P: ProcessPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: 'static,
    Self::Task: 'static, 

#[must_use]fn group_by<'life0, 'async_trait, P, A, B, ID, F, C>(
    self,
    pool: &'life0 P,
    identity: ID,
    op: F
) -> Pin<Box<dyn Future<Output = HashMap<A, C, RandomState>> + 'async_trait>> where
    'life0: 'async_trait,
    A: Eq + Hash + ProcessSend + 'static + 'async_trait,
    B: 'static + 'async_trait,
    C: ProcessSend + 'static + 'async_trait,
    F: FnMut(C, Either<B, C>) -> C + Clone + ProcessSend + 'static + 'async_trait,
    ID: FnMut() -> C + Clone + ProcessSend + 'static + 'async_trait,
    P: ProcessPool + 'async_trait,
    Self: DistributedStream<Item = (A, B)> + '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: ProcessPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: Hash,
    Self::Item: Ord,
    Self::Item: ProcessSend,
    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: ProcessPool + '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: ProcessPool + 'async_trait,
    S: Sum<Self::Item> + Sum<S> + ProcessSend + 'static + 'async_trait,
    Self: '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 + ProcessSend + 'static + 'async_trait,
    P: ProcessPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: ProcessSend,
    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: ProcessPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: Ord,
    Self::Item: ProcessSend,
    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 + ProcessSend + 'static + 'async_trait,
    P: ProcessPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: ProcessSend,
    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 + ProcessSend + 'static + 'async_trait,
    P: ProcessPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: ProcessSend,
    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: ProcessPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: Ord,
    Self::Item: ProcessSend,
    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 + ProcessSend + 'static + 'async_trait,
    P: ProcessPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: ProcessSend,
    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 + ProcessSend + 'static + 'async_trait,
    P: ProcessPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: ProcessSend,
    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: ProcessPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: Hash,
    Self::Item: Eq,
    Self::Item: Clone,
    Self::Item: ProcessSend,
    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 + ProcessSend + 'static + 'async_trait,
    B: Hash + 'static + 'async_trait,
    P: ProcessPool + 'async_trait,
    Self: DistributedStream<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: ProcessPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: ProcessSend,
    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 + ProcessSend + 'static + 'async_trait,
    P: ProcessPool + '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 + ProcessSend + 'static + 'async_trait,
    P: ProcessPool + 'async_trait,
    Self: 'async_trait,
    Self::Item: '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: FromDistributedStream<Self::Item> + 'async_trait,
    P: ProcessPool + 'async_trait,
    Self: 'async_trait,
    <B as FromDistributedStream<Self::Item>>::ReduceAFactory: ProcessSend,
    <B as FromDistributedStream<Self::Item>>::ReduceAFactory: 'static,
    <B as FromDistributedStream<Self::Item>>::ReduceA: ProcessSend,
    <B as FromDistributedStream<Self::Item>>::ReduceA: 'static,
    <B as FromDistributedStream<Self::Item>>::ReduceB: ProcessSend,
    <B as FromDistributedStream<Self::Item>>::ReduceB: 'static,
    Self::Task: 'static, 

Loading content...

Implementations on Foreign Types

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

Loading content...

Implementors

impl DistributedStream for Never[src]

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

impl<I> DistributedStream for IterDistStream<I> where
    I: Iterator,
    <I as Iterator>::Item: ProcessSend,
    <I as Iterator>::Item: 'static, 
[src]

type Item = <I as Iterator>::Item

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

impl<I, F> DistributedStream for Inspect<I, F> where
    F: FnMut(&<I as DistributedStream>::Item) + Clone + ProcessSend + 'static,
    I: DistributedStream
[src]

impl<I, F> DistributedStream for Update<I, F> where
    F: FnMut(&mut <I as DistributedStream>::Item) + Clone + ProcessSend + 'static,
    I: DistributedStream
[src]

impl<I, F, Fut> DistributedStream for Filter<I, F> where
    F: FnMut(&<I as DistributedStream>::Item) -> Fut + Clone + ProcessSend + 'static,
    Fut: Future<Output = bool>,
    I: DistributedStream
[src]

impl<I, F, R> DistributedStream for FlatMap<I, F> where
    F: FnMut(<I as DistributedStream>::Item) -> R + Clone + ProcessSend + 'static,
    I: DistributedStream,
    R: Stream
[src]

type Item = <R as Stream>::Item

type Task = FlatMapTask<<I as DistributedStream>::Task, F>

impl<I, F, R> DistributedStream for Map<I, F> where
    F: FnMut(<I as DistributedStream>::Item) -> R + Clone + ProcessSend + 'static,
    I: DistributedStream
[src]

type Item = R

type Task = MapTask<<I as DistributedStream>::Task, F>

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

type Item = Result<U, E>

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

Loading content...