pub trait ComponentStartedInfo<T, S>where
T: RuntimeStatsContainer<S>,
S: RuntimeStatsSource,{
// Required methods
fn get_receiver<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<Receiver<T>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn start_time(&self) -> BootInstant;
}
Expand description
Trait for the providers of asynchronous receivers where the diagnostics data is sent. Used for simplying testing.
Required Methods§
Sourcefn get_receiver<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<Receiver<T>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_receiver<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<Receiver<T>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetches a oneshot receiver that will eventually resolve to the diagnostics of a component if the runner provides them.
Sourcefn start_time(&self) -> BootInstant
fn start_time(&self) -> BootInstant
Returns the reported start time.