pub struct Timing {
pub idle: Duration,
pub busy: Duration,
}Expand description
Timing information for an instrumented future.
Fields§
§idle: DurationThe idle time of a future is the sum of all the time between calls to Future::poll. The
time before the first poll is not included.
busy: DurationThe busy time of a future is the sum of all the time consumed during calls to Future::poll
on that future.
Trait Implementations§
impl Copy for Timing
impl StructuralPartialEq for Timing
Auto Trait Implementations§
impl Freeze for Timing
impl RefUnwindSafe for Timing
impl Send for Timing
impl Sync for Timing
impl Unpin for Timing
impl UnwindSafe for Timing
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