Struct rd_hashd_intf::args::Args
source · [−]pub struct Args {Show 26 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,
/* private fields */
}Fields
testfiles: Option<String>size: u64file_max_frac: f64compressibility: f64params: Option<String>report: Option<String>log_dir: Option<String>log_size: u64interval: u32rotational: Option<bool>keep_cache: boolclear_testfiles: boolprepare_testfiles: boolprepare_and_exit: boolbench_cpu_single: boolbench_cpu: boolbench_mem: boolbench_test: boolbench_grain: f64bench_fake_cpu_load: boolbench_hash_size: Option<usize>bench_chunk_pages: Option<usize>bench_rps_max: Option<u32>bench_log_bps: u64bench_file_frac: Option<f64>verbosity: u32Implementations
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for Args where
Args: Default,
impl<'de> Deserialize<'de> for Args where
Args: Default,
sourcefn 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
sourceimpl JsonArgs for Args
impl JsonArgs for Args
fn match_cmdline() -> ArgMatches<'static>
fn verbosity(matches: &ArgMatches<'_>) -> u32
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> JsonArgsHelper for T where
T: JsonArgs,
impl<T> JsonArgsHelper for T where
T: JsonArgs,
fn init_args_and_logging_nosave() -> Result<(JsonConfigFile<T>, bool), Error>
fn save_args(args_file: &JsonConfigFile<T>) -> Result<(), Error>
fn init_args_and_logging() -> Result<JsonConfigFile<T>, Error>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more