pub struct RedisMetricsStore { /* private fields */ }Expand description
Redis implementation of the MetricsStore trait.
Implementations§
Source§impl RedisMetricsStore
impl RedisMetricsStore
Sourcepub fn new(client: RedisClient) -> Self
pub fn new(client: RedisClient) -> Self
Create a new Redis metrics store with the given client.
Trait Implementations§
Source§impl Clone for RedisMetricsStore
impl Clone for RedisMetricsStore
Source§fn clone(&self) -> RedisMetricsStore
fn clone(&self) -> RedisMetricsStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl MetricsStore for RedisMetricsStore
impl MetricsStore for RedisMetricsStore
Source§fn update_metrics<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
metrics: RunMetrics,
) -> Pin<Box<dyn Future<Output = Result<(), MetricsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_metrics<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
metrics: RunMetrics,
) -> Pin<Box<dyn Future<Output = Result<(), MetricsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update the metrics for a workflow run.
Source§fn get_metrics<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<RunMetrics>, MetricsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_metrics<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<RunMetrics>, MetricsError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get the metrics for a workflow run.
Auto Trait Implementations§
impl Freeze for RedisMetricsStore
impl !RefUnwindSafe for RedisMetricsStore
impl Send for RedisMetricsStore
impl Sync for RedisMetricsStore
impl Unpin for RedisMetricsStore
impl !UnwindSafe for RedisMetricsStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more