Struct network_communicator::Config [] [src]

pub struct Config { /* fields omitted */ }

Structure for configuration.

Methods

impl Config
[src]

Creates new configuration structure. First parameter - number of threads. You can get this value from num_cpus crate.

Returns number of used threads.

Set limit for sync channel of result values.

Returns limit for sync channel of result values.

Set limit for sync channel of tasks.

Returns limit for sync channel of tasks.

Trait Implementations

impl Debug for Config
[src]

Formats the value using the given formatter.

impl Clone for Config
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more