Struct exar::ScannersConfig
[−]
[src]
pub struct ScannersConfig { pub nr_of_scanners: u8, pub sleep_time_in_ms: u64, }
Exar DB's scanners configuration.
Examples
extern crate exar; use exar::*; let config = ScannersConfig { nr_of_scanners: 2, sleep_time_in_ms: 10 };
Fields
nr_of_scanners: u8
Number of scanners for each log file (spawns 2 threads for each scanner).
sleep_time_in_ms: u64
Amount of time the scanner threads should sleep between each scan.
Trait Implementations
impl Decodable for ScannersConfig
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ScannersConfig, __D::Error>
impl Encodable for ScannersConfig
[src]
impl Eq for ScannersConfig
[src]
impl PartialEq for ScannersConfig
[src]
fn eq(&self, __arg_0: &ScannersConfig) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ScannersConfig) -> bool
This method tests for !=
.
impl Debug for ScannersConfig
[src]
impl Clone for ScannersConfig
[src]
fn clone(&self) -> ScannersConfig
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
impl Default for ScannersConfig
[src]
fn default() -> ScannersConfig
Returns the "default value" for a type. Read more