Skip to main content

ObservabilityBackend

Trait ObservabilityBackend 

Source
pub trait ObservabilityBackend: Send + Sync {
    // Required methods
    fn explain_job<'life0, 'async_trait>(
        &'life0 self,
        job_id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Option<JobExplanation>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn queue_metrics<'life0, 'life1, 'async_trait>(
        &'life0 self,
        queue: Option<&'life1 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<QueueMetrics>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn explain_job<'life0, 'async_trait>( &'life0 self, job_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<JobExplanation>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn queue_metrics<'life0, 'life1, 'async_trait>( &'life0 self, queue: Option<&'life1 str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<QueueMetrics>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§