diagnostics::task_metrics::runtime_stats_source

Trait RuntimeStatsContainer

Source
pub trait RuntimeStatsContainer<T: RuntimeStatsSource> {
    // Required methods
    fn take_component_task(&mut self) -> Option<T>;
    fn take_parent_task(&mut self) -> Option<T>;
}
Expand description

Trait for the container returned by a DiagnosticsReceiverProvider. Used for simplying testing.

Required Methods§

Source

fn take_component_task(&mut self) -> Option<T>

The task running a component.

Source

fn take_parent_task(&mut self) -> Option<T>

An optional parent task running multiple components including component_task.

Implementations on Foreign Types§

Source§

impl RuntimeStatsContainer<Task> for ComponentDiagnostics

Implementors§