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