Struct timely::dataflow::channels::pushers::exchange::Exchange[][src]

pub struct Exchange<T, D, P: Push<Bundle<T, D>>, H: FnMut(&T, &D) -> u64> { /* fields omitted */ }

Distributes records among target pushees according to a distribution function.

Implementations

impl<T: Clone, D, P: Push<Bundle<T, D>>, H: FnMut(&T, &D) -> u64> Exchange<T, D, P, H>[src]

pub fn new(pushers: Vec<P>, key: H) -> Exchange<T, D, P, H>[src]

Allocates a new Exchange from a supplied set of pushers and a distribution function.

Trait Implementations

impl<T: Eq + Data, D: Data, P: Push<Bundle<T, D>>, H: FnMut(&T, &D) -> u64> Push<Message<Message<T, D>>> for Exchange<T, D, P, H>[src]

Auto Trait Implementations

impl<T, D, P, H> RefUnwindSafe for Exchange<T, D, P, H> where
    D: RefUnwindSafe,
    H: RefUnwindSafe,
    P: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, D, P, H> Send for Exchange<T, D, P, H> where
    D: Send,
    H: Send,
    P: Send,
    T: Send

impl<T, D, P, H> Sync for Exchange<T, D, P, H> where
    D: Sync,
    H: Sync,
    P: Sync,
    T: Sync

impl<T, D, P, H> Unpin for Exchange<T, D, P, H> where
    D: Unpin,
    H: Unpin,
    P: Unpin,
    T: Unpin

impl<T, D, P, H> UnwindSafe for Exchange<T, D, P, H> where
    D: UnwindSafe,
    H: UnwindSafe,
    P: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.