ExchangeCore

Struct ExchangeCore 

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

An exchange between multiple observers by data

Implementations§

Source§

impl<C, D, F: FnMut(&D) -> u64 + 'static> ExchangeCore<C, D, F>

Source

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

Allocates a new Exchange pact from a distribution function.

Trait Implementations§

Source§

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

Source§

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

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

impl<T: Timestamp, C, D: Data + Clone, F: FnMut(&D) -> u64 + 'static> ParallelizationContractCore<T, C> for ExchangeCore<C, D, F>
where C: Data + Container + PushPartitioned<Item = D>,

Source§

type Pusher = Exchange<T, C, D, LogPusher<T, C, Box<dyn Push<Message<Message<T, C>>>>>, F>

Type implementing Push produced by this pact.
Source§

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

Type implementing Pull produced by this pact.
Source§

fn connect<A: AsWorker>( self, allocator: &mut A, identifier: usize, address: &[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, D, F> Freeze for ExchangeCore<C, D, F>
where F: Freeze,

§

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

§

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

§

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

§

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

§

impl<C, D, F> UnwindSafe for ExchangeCore<C, D, F>
where F: UnwindSafe, C: UnwindSafe, D: 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>,

Source§

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>,

Source§

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.
Source§

impl<T, D, P> ParallelizationContract<T, D> for P