pub enum Allocator {
Thread(Thread),
Process(Process),
ProcessBinary(ProcessAllocator),
ZeroCopy(TcpAllocator<Process>),
ZeroCopyBinary(TcpAllocator<ProcessAllocator>),
}Expand description
Enumerates known implementors of Allocate.
Passes trait method calls on to members.
Variants§
Thread(Thread)
Intra-thread allocator.
Process(Process)
Inter-thread, intra-process allocator.
ProcessBinary(ProcessAllocator)
Inter-thread, intra-process serializing allocator.
ZeroCopy(TcpAllocator<Process>)
Inter-process allocator.
ZeroCopyBinary(TcpAllocator<ProcessAllocator>)
Inter-process allocator, intra-process serializing allocator.
Implementations§
Trait Implementations§
Source§impl Allocate for Generic
impl Allocate for Generic
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 broadcast<T>(
&mut self,
identifier: usize,
) -> (Box<dyn Push<T>>, Box<dyn Pull<T>>)where
T: Exchangeable + Clone,
fn broadcast<T>(
&mut self,
identifier: usize,
) -> (Box<dyn Push<T>>, Box<dyn Pull<T>>)where
T: Exchangeable + Clone,
Allocates a broadcast channel, where each pushed message is received by all.
Auto Trait Implementations§
impl Freeze for Generic
impl !RefUnwindSafe for Generic
impl !Send for Generic
impl !Sync for Generic
impl Unpin for Generic
impl !UnwindSafe for Generic
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