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
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
sourceimpl ArgApp
impl ArgApp
sourcepub fn parse_config(&mut self, _path: Option<&str>, fail_safe: bool)
pub fn parse_config(&mut self, _path: Option<&str>, fail_safe: bool)
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
Auto Trait Implementations
impl RefUnwindSafe for ArgApp
impl Send for ArgApp
impl !Sync for ArgApp
impl Unpin for ArgApp
impl UnwindSafe for ArgApp
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> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more