Struct timely::dataflow::channels::pact::ExchangeCore

source ·
pub struct ExchangeCore<C, F> { /* private fields */ }
Expand description

An exchange between multiple observers by data

Implementations§

source§

impl<C, F> ExchangeCore<C, F>
where C: PushPartitioned, for<'a> F: FnMut(&C::Item<'a>) -> u64,

source

pub fn new(func: F) -> ExchangeCore<C, F>

Allocates a new Exchange pact from a distribution function.

Trait Implementations§

source§

impl<C, F> Debug for ExchangeCore<C, F>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: Timestamp, C, H> ParallelizationContract<T, C> for ExchangeCore<C, H>
where C: ExchangeData + PushPartitioned, for<'a> H: FnMut(&C::Item<'a>) -> u64 + 'static,

§

type Pusher = Exchange<T, C, LogPusher<T, C, Box<dyn Push<Bincode<Message<T, C>>>>>, H>

Type implementing Push produced by this pact.
§

type Puller = LogPuller<T, C, Box<dyn Pull<Bincode<Message<T, C>>>>>

Type implementing Pull produced by this pact.
source§

fn connect<A: AsWorker>( self, allocator: &mut A, identifier: usize, address: Rc<[usize]>, logging: Option<Logger>, ) -> (Self::Pusher, Self::Puller)

Allocates a matched pair of push and pull endpoints implementing the pact.

Auto Trait Implementations§

§

impl<C, F> Freeze for ExchangeCore<C, F>
where F: Freeze,

§

impl<C, F> RefUnwindSafe for ExchangeCore<C, F>

§

impl<C, F> Send for ExchangeCore<C, F>
where F: Send, C: Send,

§

impl<C, F> Sync for ExchangeCore<C, F>
where F: Sync, C: Sync,

§

impl<C, F> Unpin for ExchangeCore<C, F>
where F: Unpin, C: Unpin,

§

impl<C, F> UnwindSafe for ExchangeCore<C, F>
where F: UnwindSafe, C: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.