pub struct ExecutionStats {
pub created: Instant,
pub started: Option<Instant>,
pub finished: Option<Instant>,
pub poll_duration: Duration,
pub poll_duration_max: Duration,
pub poll_entries: usize,
}Expand description
Task execution stats.
Fields§
§created: InstantTask creation timestamp.
started: Option<Instant>Timestamp of the first poll.
finished: Option<Instant>Timestamp of the poll that returned Poll::Ready.
poll_duration: DurationTotal time spent polling.
poll_duration_max: DurationMaximum time spent in the poll method.
poll_entries: usizeNumber of times the task was polled during execution.
Trait Implementations§
Source§impl Clone for ExecutionStats
impl Clone for ExecutionStats
Source§fn clone(&self) -> ExecutionStats
fn clone(&self) -> ExecutionStats
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ExecutionStats
impl RefUnwindSafe for ExecutionStats
impl Send for ExecutionStats
impl Sync for ExecutionStats
impl Unpin for ExecutionStats
impl UnwindSafe for ExecutionStats
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