pub trait Metrics: Backend {
// Required methods
fn global(
&self,
) -> impl Future<Output = Result<Vec<Statistic>, Self::Error>> + Send;
fn fetch_by_queue(
&self,
queue: &str,
) -> impl Future<Output = Result<Vec<Statistic>, Self::Error>> + Send;
}Expand description
Allows collecting metrics from the backend
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.