pub trait ComponentStartedInfo<T, S>{
    // 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) -> MonotonicTime;
}
Expand description

Trait for the providers of asynchronous receivers where the diagnostics data is sent. Used for simplying testing.

Required Methods§

source

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.

source

fn start_time(&self) -> MonotonicTime

Returns the reported start time.

Implementations on Foreign Types§

source§

impl ComponentStartedInfo<ComponentDiagnostics, Task> for RuntimeInfo

source§

fn get_receiver<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<Receiver<ComponentDiagnostics>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn start_time(&self) -> MonotonicTime

Implementors§