pub struct EnvBuilder { /* private fields */ }
Expand description

Environment factory in order to configure the properties.

Implementations

Initialize a new EnvBuilder.

Set the number of completion queues and polling threads. Each thread polls one completion queue.

Panics

This method will panic if count is 0.

Set the thread name prefix of each polling thread.

Execute function f after each thread is started but before it starts doing work.

Execute function f before each thread stops.

Finalize the EnvBuilder, build the Environment and initialize the gRPC library.

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.