pub struct ProcessAllocator { /* private fields */ }Expand description
A serializing allocator for inter-thread intra-process communication.
Trait Implementations§
Source§impl Allocate for ProcessAllocator
impl Allocate for ProcessAllocator
Source§fn allocate<T>(
&mut self,
identifier: usize,
) -> (Vec<Box<dyn Push<T>>>, Box<dyn Pull<T>>)where
T: Exchangeable,
fn allocate<T>(
&mut self,
identifier: usize,
) -> (Vec<Box<dyn Push<T>>>, Box<dyn Pull<T>>)where
T: Exchangeable,
Constructs several send endpoints and one receive endpoint.
Source§fn events(&self) -> &Rc<RefCell<Vec<usize>>>
fn events(&self) -> &Rc<RefCell<Vec<usize>>>
A shared queue of communication events with channel identifier. Read more
Auto Trait Implementations§
impl Freeze for ProcessAllocator
impl !RefUnwindSafe for ProcessAllocator
impl !Send for ProcessAllocator
impl !Sync for ProcessAllocator
impl Unpin for ProcessAllocator
impl !UnwindSafe for ProcessAllocator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more