pub trait ParallelizationContractCore<T, D> {
type Pusher: Push<BundleCore<T, D>> + 'static;
type Puller: Pull<BundleCore<T, D>> + 'static;
// Required method
fn connect<A: AsWorker>(
self,
allocator: &mut A,
identifier: usize,
address: &[usize],
logging: Option<Logger>
) -> (Self::Pusher, Self::Puller);
}
Expand description
A ParallelizationContractCore
allocates paired Push
and Pull
implementors.
Required Associated Types§
sourcetype Pusher: Push<BundleCore<T, D>> + 'static
type Pusher: Push<BundleCore<T, D>> + 'static
Type implementing Push
produced by this pact.
sourcetype Puller: Pull<BundleCore<T, D>> + 'static
type Puller: Pull<BundleCore<T, D>> + 'static
Type implementing Pull
produced by this pact.