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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)