Struct network_communicator::Config
[−]
[src]
pub struct Config { /* fields omitted */ }
Structure for configuration.
Methods
impl Config
[src]
fn new(thread_count: usize) -> Result<Config, ConfigError>
Creates new configuration structure.
First parameter - number of threads. You can get this value from num_cpus
crate.
fn get_thread_count(&self) -> usize
Returns number of used threads.
fn set_limit_result_channel(
&mut self,
value: usize
) -> Result<&mut Self, ConfigError>
&mut self,
value: usize
) -> Result<&mut Self, ConfigError>
Set limit for sync channel of result values.
fn get_limit_result_channel(&self) -> usize
Returns limit for sync channel of result values.
fn set_limit_task_channel(
&mut self,
value: usize
) -> Result<&mut Self, ConfigError>
&mut self,
value: usize
) -> Result<&mut Self, ConfigError>
Set limit for sync channel of tasks.
fn get_limit_task_channel(&self) -> usize
Returns limit for sync channel of tasks.
Trait Implementations
impl Debug for Config
[src]
impl Clone for Config
[src]
fn clone(&self) -> Config
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more