Struct timely::communication::allocator::zero_copy::allocator_process::ProcessBuilder [−][src]
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.
Implementations
impl ProcessBuilder
[src]
pub fn new_vector(count: usize) -> Vec<ProcessBuilder, Global>
[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.
pub fn build(self) -> <ProcessBuilder as AllocateBuilder>::Allocator
[src]
Builds allocator, consumes self.
Auto Trait Implementations
impl RefUnwindSafe for ProcessBuilder
impl Send for ProcessBuilder
impl Sync for ProcessBuilder
impl Unpin for ProcessBuilder
impl UnwindSafe for ProcessBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,