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