Struct rd_hashd_intf::args::Args
source · pub struct Args {Show 27 fields
pub testfiles: Option<String>,
pub size: u64,
pub file_max_frac: f64,
pub compressibility: f64,
pub params: Option<String>,
pub report: Option<String>,
pub log_dir: Option<String>,
pub log_size: u64,
pub interval: u32,
pub rotational: Option<bool>,
pub keep_cache: bool,
pub clear_testfiles: bool,
pub prepare_testfiles: bool,
pub prepare_and_exit: bool,
pub bench_cpu_single: bool,
pub bench_cpu: bool,
pub bench_mem: bool,
pub bench_test: bool,
pub bench_grain: f64,
pub bench_fake_cpu_load: bool,
pub bench_hash_size: Option<usize>,
pub bench_chunk_pages: Option<usize>,
pub bench_rps_max: Option<u32>,
pub bench_log_bps: u64,
pub bench_file_frac: Option<f64>,
pub verbosity: u32,
pub logfile: Option<String>,
/* private fields */
}Fields§
§testfiles: Option<String>§size: u64§file_max_frac: f64§compressibility: f64§params: Option<String>§report: Option<String>§log_dir: Option<String>§log_size: u64§interval: u32§rotational: Option<bool>§keep_cache: bool§clear_testfiles: bool§prepare_testfiles: bool§prepare_and_exit: bool§bench_cpu_single: bool§bench_cpu: bool§bench_mem: bool§bench_test: bool§bench_grain: f64§bench_fake_cpu_load: bool§bench_hash_size: Option<usize>§bench_chunk_pages: Option<usize>§bench_rps_max: Option<u32>§bench_log_bps: u64§bench_file_frac: Option<f64>§verbosity: u32§logfile: Option<String>Implementations§
source§impl Args
impl Args
pub const DFL_SIZE_MULT: u64 = 4u64
pub const DFL_FILE_MAX_FRAC: f64 = 0.25f64
pub fn set_help_body(help: &'static str)
pub fn with_mem_size(mem_size: usize) -> Self
pub fn bench_preload_cache_size(&self) -> usize
pub fn file_max_size(&self) -> u64
Trait Implementations§
source§impl<'de> Deserialize<'de> for Args
impl<'de> Deserialize<'de> for Args
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonArgs for Args
impl JsonArgs for Args
fn match_cmdline() -> ArgMatches<'static>
fn verbosity(matches: &ArgMatches<'_>) -> u32
fn log_file(matches: &ArgMatches<'_>) -> String
fn system_configuration_overrides( matches: &ArgMatches<'_> ) -> (Option<usize>, Option<usize>, Option<usize>)
fn process_cmdline(&mut self, matches: &ArgMatches<'_>) -> bool
Auto Trait Implementations§
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more