pub struct FuturesMetrics {
pub busy: Counter,
pub idle: Counter,
}
Expand description
The statistic of the futures life cycle.
Fields§
§busy: Counter
The time spent for real actions by the future.
Time is in nanoseconds.
idle: Counter
The idle time of awaiting sub-tasks or any action from the system/user.
Time is in nanoseconds.
Implementations§
Source§impl FuturesMetrics
impl FuturesMetrics
pub fn obtain_futures_metrics(futures_name: &str) -> FuturesMetrics
Trait Implementations§
Source§impl Clone for FuturesMetrics
impl Clone for FuturesMetrics
Source§fn clone(&self) -> FuturesMetrics
fn clone(&self) -> FuturesMetrics
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FuturesMetrics
impl Debug for FuturesMetrics
Source§impl Default for FuturesMetrics
impl Default for FuturesMetrics
Source§fn default() -> FuturesMetrics
fn default() -> FuturesMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FuturesMetrics
impl RefUnwindSafe for FuturesMetrics
impl Send for FuturesMetrics
impl Sync for FuturesMetrics
impl Unpin for FuturesMetrics
impl UnwindSafe for FuturesMetrics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more