Skip to main content

RuntimeStatusService

Trait RuntimeStatusService 

Source
pub trait RuntimeStatusService: Send + Sync {
    // Required methods
    fn status_snapshot(&self) -> CoreStatusSnapshot;
    fn status_report<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = CoreStatusReport> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_metrics<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = CoreMetrics> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_metrics_prometheus_text<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn subscribe_lifecycle(&self) -> Receiver<RuntimeLifecycle>;
}

Required Methods§

Source

fn status_snapshot(&self) -> CoreStatusSnapshot

Source

fn status_report<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CoreStatusReport> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_metrics<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = CoreMetrics> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_metrics_prometheus_text<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn subscribe_lifecycle(&self) -> Receiver<RuntimeLifecycle>

Implementors§