Struct grpcio::EnvBuilder [−][src]
pub struct EnvBuilder { /* fields omitted */ }
Environment
factory in order to configure the properties.
Methods
impl EnvBuilder
[src]
impl EnvBuilder
pub fn new() -> EnvBuilder
[src]
pub fn new() -> EnvBuilder
Initialize a new EnvBuilder
.
pub fn cq_count(self, count: usize) -> EnvBuilder
[src]
pub fn cq_count(self, count: usize) -> 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.
pub fn name_prefix<S: Into<String>>(self, prefix: S) -> EnvBuilder
[src]
pub fn name_prefix<S: Into<String>>(self, prefix: S) -> EnvBuilder
Set the thread name prefix of each polling thread.
pub fn build(self) -> Environment
[src]
pub fn build(self) -> Environment
Finalize the EnvBuilder
, build the Environment
and initialize the gRPC library.
Auto Trait Implementations
impl Send for EnvBuilder
impl Send for EnvBuilder
impl Sync for EnvBuilder
impl Sync for EnvBuilder