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

An object that used to control concurrency and start gRPC event loop.

Implementations

Initialize gRPC and create a thread pool to poll completion queue. The thread pool size and the number of completion queue is specified by cq_count. Each thread polls one completion queue.

Panics

This method will panic if cq_count is 0.

Get all the created completion queues.

Pick an arbitrary completion queue.

Trait Implementations

Executes the destructor for this type. Read more

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.