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

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

An exchange between multiple observers by data

Implementations§

source§

impl<CB, F> ExchangeCore<CB, F>

source

pub fn new_core(func: F) -> ExchangeCore<CB, F>

Allocates a new Exchange pact from a distribution function.

source§

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

source

pub fn new(func: F) -> ExchangeCore<CapacityContainerBuilder<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, CB, H> ParallelizationContract<T, <CB as ContainerBuilder>::Container> for ExchangeCore<CB, H>
where CB: ContainerBuilder + for<'a> PushInto<<CB::Container as Container>::Item<'a>>, CB::Container: Data + Send + SizableContainer + ContainerBytes, for<'a> H: FnMut(&<CB::Container as Container>::Item<'a>) -> u64 + 'static,

§

type Pusher = Exchange<T, CB, LogPusher<T, <CB as ContainerBuilder>::Container, Box<dyn Push<Message<T, <CB as ContainerBuilder>::Container>>>>, H>

Type implementing Push produced by this pact.
§

type Puller = LogPuller<T, <CB as ContainerBuilder>::Container, Box<dyn Pull<Message<T, <CB as ContainerBuilder>::Container>>>>

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<CB, F> Freeze for ExchangeCore<CB, F>
where F: Freeze,

§

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

§

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

§

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

§

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

§

impl<CB, F> UnwindSafe for ExchangeCore<CB, F>
where F: UnwindSafe, CB: 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> CopyAs<T> for T

source§

fn copy_as(self) -> T

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.