[][src]Struct timely::communication::allocator::zero_copy::allocator_process::ProcessBuilder

pub struct ProcessBuilder { /* fields omitted */ }

Builds an instance of a ProcessAllocator.

Builders are required because some of the state in a ProcessAllocator cannot be sent between threads (specifically, the Rc<RefCell<_>> local channels). So, we must package up the state shared between threads here, and then provide a method that will instantiate the non-movable members once in the destination thread.

Methods

impl ProcessBuilder[src]

pub fn new_vector(count: usize) -> Vec<ProcessBuilder>[src]

Creates a vector of builders, sharing appropriate state.

This method requires access to a byte exchanger, from which it mints channels.

pub fn build(self) -> ProcessAllocator[src]

Builds a ProcessAllocator, instantiating Rc<RefCell<_>> elements.

Trait Implementations

impl AllocateBuilder for ProcessBuilder[src]

type Allocator = ProcessAllocator

The type of allocator to be built.

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

Builds allocator, consumes self.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]