SagaDatabase

Trait SagaDatabase 

Source
pub trait SagaDatabase {
    type Err: Into<Error> + From<Error>;

    // Required method
    fn get_incomplete_sagas<'life0, 'async_trait>(
        &'life0 self,
        operation_kind: OperationKind,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Saga>, Self::Err>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Saga Database trait

Required Associated Types§

Source

type Err: Into<Error> + From<Error>

Saga Database Error

Required Methods§

Source

fn get_incomplete_sagas<'life0, 'async_trait>( &'life0 self, operation_kind: OperationKind, ) -> Pin<Box<dyn Future<Output = Result<Vec<Saga>, Self::Err>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get all incomplete sagas for a given operation kind

Implementors§