Trait timely::communication::allocator::AllocateBuilder[][src]

pub trait AllocateBuilder: Send {
    type Allocator: Allocate;
    pub fn build(self) -> Self::Allocator;
}

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.

Associated Types

type Allocator: Allocate[src]

The type of allocator to be built.

Loading content...

Required methods

pub fn build(self) -> Self::Allocator[src]

Builds allocator, consumes self.

Loading content...

Implementors

impl AllocateBuilder for GenericBuilder[src]

type Allocator = Generic

impl AllocateBuilder for timely::communication::allocator::process::ProcessBuilder[src]

impl AllocateBuilder for ThreadBuilder[src]

impl AllocateBuilder for timely::communication::allocator::zero_copy::allocator_process::ProcessBuilder[src]

type Allocator = ProcessAllocator

pub fn build(self) -> <ProcessBuilder as AllocateBuilder>::Allocator[src]

Builds allocator, consumes self.

Loading content...