Struct dyer::ArgApp

source · []
pub struct ArgApp {
Show 15 fields pub nap: f64, pub join_gap: f64, pub round_req: usize, pub round_req_min: usize, pub round_req_max: usize, pub buf_task: usize, pub spawn_task_max: usize, pub round_task: usize, pub round_task_min: usize, pub round_res: usize, pub round_errs: usize, pub round_entity: usize, pub skip: bool, pub arg_affix: Option<ArgAffix>, pub data_dir: String, /* private fields */
}
Expand description

Arguments that control the App at runtime, including using history or not,
Task Affix Request Response entities consuming and generating There shall be an introduction to every member(maybe coming soon).

Fields

nap: f64

time tap added to created Tasks or Affixs

join_gap: f64

gap to forcefully join the spawned task

round_req: usize

number that once for a concurrent future poll

round_req_min: usize

cache request minimal length

round_req_max: usize

cache request maximal length

buf_task: usize

buffer length for the created task.

spawn_task_max: usize

maximal spawned task that cached

round_task: usize

construct req from task one time

round_task_min: usize

minimal task(affix) consumed per round

round_res: usize

consume response once upon a time

round_errs: usize

consume errs once upon a time

round_entity: usize

consume Entity once upon a time

skip: bool

use files in directory data/ or not, set true as default

arg_affix: Option<ArgAffix>

control the affix workflow

data_dir: String

directory that store history file

Implementations

create an instance of ArgApp

use Affixor or not

parse the dyer.cfg file and update the ArgApp not fail safe for the first time call in ArgApp::new fail safe after that

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more