pub enum GenericBuilder {
Thread(ThreadBuilder),
Process(ProcessBuilder),
ProcessBinary(ProcessBuilder),
ZeroCopy(TcpBuilder<ProcessBuilder>),
ZeroCopyBinary(TcpBuilder<ProcessBuilder>),
}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 ProcessBinary type
contains Rc wrapped state, and so cannot itself be moved across threads.
Variants§
Thread(ThreadBuilder)
Builder for Thread allocator.
Process(ProcessBuilder)
Builder for Process allocator.
ProcessBinary(ProcessBuilder)
Builder for ProcessBinary allocator.
ZeroCopy(TcpBuilder<ProcessBuilder>)
Builder for ZeroCopy allocator.
ZeroCopyBinary(TcpBuilder<ProcessBuilder>)
Builder for ZeroCopyBinary allocator.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GenericBuilder
impl !RefUnwindSafe for GenericBuilder
impl Send for GenericBuilder
impl !Sync for GenericBuilder
impl Unpin for GenericBuilder
impl !UnwindSafe for GenericBuilder
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