Skip to main content

CompletedOperationsDatabase

Trait CompletedOperationsDatabase 

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

    // Required methods
    fn get_completed_operation<'life0, 'life1, 'async_trait>(
        &'life0 self,
        operation_id: &'life1 Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Operation>, Self::Err>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_completed_operations_by_kind<'life0, 'async_trait>(
        &'life0 self,
        operation_kind: OperationKind,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Operation>, Self::Err>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_completed_operations<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Operation>, Self::Err>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Completed Operations Database trait

Required Associated Types§

Source

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

Completed Operations Database Error

Required Methods§

Source

fn get_completed_operation<'life0, 'life1, 'async_trait>( &'life0 self, operation_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<Operation>, Self::Err>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get completed operation by operation_id

Source

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

Get completed operations by operation kind

Source

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

Get all completed operations

Implementors§