pub trait Recorder {
// Required methods
fn task_created(&self);
fn task_destroyed(&self, stats: ExecutionStats);
}Expand description
Trait for tracking task execution stats with MetricsFuture.
Required Methods§
Sourcefn task_created(&self)
fn task_created(&self)
Reports that a task was created.
Sourcefn task_destroyed(&self, stats: ExecutionStats)
fn task_destroyed(&self, stats: ExecutionStats)
Reports task execution stats when it’s dropped.