timely_communication::allocator

Trait AllocateBuilder

Source
pub trait AllocateBuilder: Send {
    type Allocator: Allocate;

    // Required method
    fn build(self) -> Self::Allocator;
}
Expand description

A proto-allocator, which implements Send and can be completed with build.

This trait exists because some allocators contain elements that do not implement the Send trait, for example Rc wrappers for shared state. As such, what we actually need to create to initialize a computation are builders, which we can then move into new threads each of which then construct their actual allocator.

Required Associated Types§

Source

type Allocator: Allocate

The type of allocator to be built.

Required Methods§

Source

fn build(self) -> Self::Allocator

Builds allocator, consumes self.

Implementors§

Source§

impl AllocateBuilder for GenericBuilder

Source§

impl AllocateBuilder for timely_communication::allocator::process::ProcessBuilder

Source§

impl AllocateBuilder for ThreadBuilder

Source§

impl AllocateBuilder for timely_communication::allocator::zero_copy::allocator_process::ProcessBuilder