Metrics

Trait Metrics 

Source
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§

Source

fn global( &self, ) -> impl Future<Output = Result<Vec<Statistic>, Self::Error>> + Send

Collects and returns global statistics from the backend

Source

fn fetch_by_queue( &self, queue: &str, ) -> impl Future<Output = Result<Vec<Statistic>, Self::Error>> + Send

Collects and returns statistics for a specific queue

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.

Implementors§