Struct grpcio::Environment
[−]
[src]
pub struct Environment { /* fields omitted */ }
An object that used to control concurrency and start event loop.
Methods
impl Environment
[src]
fn new(cq_count: usize) -> Environment
[src]
Initialize grpc and create a threadpool to poll event loop.
Each thread in threadpool will have one event loop.
fn completion_queues(&self) -> &[CompletionQueue]
[src]
Get all the created completion queues.
fn pick_cq(&self) -> CompletionQueue
[src]
Pick an arbitrary completion queue.