pub struct RedisErrorStore { /* private fields */ }Expand description
Redis implementation of the ErrorStore trait.
Implementations§
Source§impl RedisErrorStore
impl RedisErrorStore
Sourcepub fn new(client: RedisClient) -> Self
pub fn new(client: RedisClient) -> Self
Create a new Redis error store with the given client.
Trait Implementations§
Source§impl Clone for RedisErrorStore
impl Clone for RedisErrorStore
Source§fn clone(&self) -> RedisErrorStore
fn clone(&self) -> RedisErrorStore
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 ErrorStore for RedisErrorStore
impl ErrorStore for RedisErrorStore
Source§fn record_error<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
error_info: WorkflowError,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn record_error<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
error_info: WorkflowError,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Record an error for a workflow run.
Source§fn get_errors<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<WorkflowError>, ErrorStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_errors<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<WorkflowError>, ErrorStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get all errors for a workflow run.
Auto Trait Implementations§
impl Freeze for RedisErrorStore
impl !RefUnwindSafe for RedisErrorStore
impl Send for RedisErrorStore
impl Sync for RedisErrorStore
impl Unpin for RedisErrorStore
impl !UnwindSafe for RedisErrorStore
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