pub trait CompensationIdempotencyStore: Send + Sync {
// Required methods
fn was_compensated<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn mark_compensated<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}๐Deprecated since 0.7.0: Experimental compensation idempotency contract (M148); API may change before stabilization.
Expand description
Idempotency store contract for compensation execution deduplication.
Required Methodsยง
fn was_compensated<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
๐Deprecated since 0.7.0: Experimental compensation idempotency contract (M148); API may change before stabilization.
fn mark_compensated<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
๐Deprecated since 0.7.0: Experimental compensation idempotency contract (M148); API may change before stabilization.