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§
Required Methods§
Sourcefn 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_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