pub trait DepthProbe: Send + Sync {
// Required methods
fn depth<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn queue_label(&self) -> String;
}Available on crate feature
serve and crate feature triggers and (crate features triggers-kafka or triggers-redis) only.Expand description
The IO seam: returns the current depth of the queue.
Required Methods§
fn depth<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn queue_label(&self) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".