Struct grpcio::Environment[][src]

pub struct Environment { /* fields omitted */ }

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

Methods

impl Environment
[src]

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.

Important traits for &'a [u8]

Get all the created completion queues.

Pick an arbitrary completion queue.

Trait Implementations

impl Drop for Environment
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl Send for Environment

impl Sync for Environment