Skip to main content

ExecutionStore

Trait ExecutionStore 

Source
pub trait ExecutionStore: Send + Sync {
    // Required methods
    fn save<'life0, 'life1, 'async_trait>(
        &'life0 self,
        state: &'life1 ExecutionState,
    ) -> Pin<Box<dyn Future<Output = Result<(), DurableError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn load<'life0, 'life1, 'async_trait>(
        &'life0 self,
        execution_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ExecutionState>, DurableError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn delete<'life0, 'life1, 'async_trait>(
        &'life0 self,
        execution_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), DurableError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ExecutionId>, DurableError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for persisting execution state

Required Methods§

Source

fn save<'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ExecutionState, ) -> Pin<Box<dyn Future<Output = Result<(), DurableError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Save execution state

Source

fn load<'life0, 'life1, 'async_trait>( &'life0 self, execution_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<ExecutionState>, DurableError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Load execution state

Source

fn delete<'life0, 'life1, 'async_trait>( &'life0 self, execution_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<(), DurableError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Delete execution state

Source

fn list<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<ExecutionId>, DurableError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List all execution IDs

Implementors§