pub struct ArgRate {
    pub uptime: f64,
    pub cycle: f64,
    pub cycle_usage: f64,
    pub interval: f64,
    pub load: f64,
    pub err: usize,
    pub remains: usize,
    pub rate_low: f64,
    pub anchor_low: f64,
    pub anchor: f64,
    pub stamps: Vec<f64>,
}
Expand description

some infomation about dyer at rumtime where speed and error-handler based on

Fields

uptime: f64

all time the app runs

cycle: f64

the time that a cycle lasts, backup application history once running out

cycle_usage: f64

time the app runs in each cycle

interval: f64

a time gap when updating some infomation

load: f64

normally the speed that the app spawns tasks in the whole interval

err: usize

failed tasks in each interval

remains: usize

remaining jobs to do in each cycle in each interval

rate_low: f64

the rate applied to limit the requests to be spawned in low mode

anchor_low: f64

time anchor by which the mode is low

anchor: f64

time anchor at which update some infomation

stamps: Vec<f64>

vector of gap each request takes to receive response header in each interval

Implementations

backup the Task Affix Request for some time in case of interupt

decide the length of Task to be spawned

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