pub enum GenericBuilder {
Thread(ThreadBuilder),
Process(ProcessBuilder),
ProcessBinary(ProcessBuilder),
ZeroCopy(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.
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