pub enum AllocatorBuilder {
Thread(ThreadBuilder),
Process(ProcessBuilder),
Tcp(TcpBuilder),
}Expand description
Enumerations of constructable implementors of Allocate.
The builder variants are meant to be Send, so that they can be moved across threads,
whereas the allocator they construct may not. As an example, the binary Process type
contains Rc wrapped state, and so cannot itself be moved across threads.
Variants§
Thread(ThreadBuilder)
Builder for the Thread allocator.
Process(ProcessBuilder)
Builder for a Process allocator (in either of two flavors, see ProcessBuilder).
Tcp(TcpBuilder)
Builder for the Tcp (inter-process) allocator.
Auto Trait Implementations§
impl Freeze for AllocatorBuilder
impl !RefUnwindSafe for AllocatorBuilder
impl Send for AllocatorBuilder
impl !Sync for AllocatorBuilder
impl Unpin for AllocatorBuilder
impl UnsafeUnpin for AllocatorBuilder
impl !UnwindSafe for AllocatorBuilder
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