Struct exar::PartialScannersConfig [] [src]

pub struct PartialScannersConfig {
    pub nr_of_scanners: Option<u8>,
    pub sleep_time_in_ms: Option<u64>,
}

Exar DB's partial scanners configuration. Holds overrides for the main database configuration.

Examples

extern crate exar;

use exar::*;

let config = PartialScannersConfig {
    nr_of_scanners: Some(2),
    sleep_time_in_ms: Some(10)
};

Fields

nr_of_scanners: Option<u8>

Number of scanners for each log file (spawns 2 threads for each scanner).

sleep_time_in_ms: Option<u64>

Amount of time the scanner threads should sleep between each scan.

Trait Implementations

impl Decodable for PartialScannersConfig
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<PartialScannersConfig, __D::Error>

impl Encodable for PartialScannersConfig
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Eq for PartialScannersConfig
[src]

impl PartialEq for PartialScannersConfig
[src]

fn eq(&self, __arg_0: &PartialScannersConfig) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &PartialScannersConfig) -> bool

This method tests for !=.

impl Debug for PartialScannersConfig
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for PartialScannersConfig
[src]

fn clone(&self) -> PartialScannersConfig

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