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§