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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".