pub struct RedisRunInfoStore { /* private fields */ }Expand description
Redis implementation of the RunInfoStore trait.
Implementations§
Source§impl RedisRunInfoStore
impl RedisRunInfoStore
Sourcepub fn new(client: RedisClient) -> Self
pub fn new(client: RedisClient) -> Self
Create a new Redis run info store with the given client.
Trait Implementations§
Source§impl Clone for RedisRunInfoStore
impl Clone for RedisRunInfoStore
Source§fn clone(&self) -> RedisRunInfoStore
fn clone(&self) -> RedisRunInfoStore
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 RunInfoStore for RedisRunInfoStore
impl RunInfoStore for RedisRunInfoStore
Source§fn insert_run<'life0, 'async_trait>(
&'life0 self,
info: RunInfo,
) -> Pin<Box<dyn Future<Output = Result<(), RunInfoError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn insert_run<'life0, 'async_trait>(
&'life0 self,
info: RunInfo,
) -> Pin<Box<dyn Future<Output = Result<(), RunInfoError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Insert a new workflow run record.
Source§fn update_status<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
status: RunStatus,
) -> Pin<Box<dyn Future<Output = Result<(), RunInfoError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_status<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
status: RunStatus,
) -> Pin<Box<dyn Future<Output = Result<(), RunInfoError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update the status for a workflow run.
Source§fn update_finished_at<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
finished_at: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<(), RunInfoError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_finished_at<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
finished_at: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<(), RunInfoError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Update the finished_at timestamp for a workflow run.
Source§fn get_run<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<RunInfo>, RunInfoError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_run<'life0, 'life1, 'async_trait>(
&'life0 self,
run_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<RunInfo>, RunInfoError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get the run info for a workflow run.
Auto Trait Implementations§
impl Freeze for RedisRunInfoStore
impl !RefUnwindSafe for RedisRunInfoStore
impl Send for RedisRunInfoStore
impl Sync for RedisRunInfoStore
impl Unpin for RedisRunInfoStore
impl !UnwindSafe for RedisRunInfoStore
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