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
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ArgRate
impl Send for ArgRate
impl Sync for ArgRate
impl Unpin for ArgRate
impl UnwindSafe for ArgRate
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