pub struct Timing { /* private fields */ }Expand description
The timing information for an instrumented future.
The busy time and the idle time of the instrumented future is available.
§Busy time
The busy time of a future is the sum of all the time consumed during calls to Future::poll
on that future.
The busy time will always be non-zero.
§Idle time
The 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.
The idle time may be zero if the inner future returns Poll::Ready on the first poll (and so
never returns Poll::Pending).
Implementations§
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