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.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.