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

Builder for Process allocator.

ProcessBinary(ProcessBuilder)

Builder for ProcessBinary allocator.

ZeroCopy(TcpBuilder<TypedProcessBuilder>)

Builder for ZeroCopy allocator.

Trait Implementations

The type of allocator to be built.

Builds allocator, consumes self.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.