Skip to main content

InterventionService

Trait InterventionService 

Source
pub trait InterventionService: Send + Sync {
    // Required methods
    fn begin_intervention<'life0, 'async_trait>(
        &'life0 self,
        command: BeginInterventionCommand,
    ) -> Pin<Box<dyn Future<Output = Result<TransactionRecord, AdkError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn continue_intervention<'life0, 'async_trait>(
        &'life0 self,
        command: ContinueInterventionCommand,
    ) -> Pin<Box<dyn Future<Output = Result<TransactionRecord, AdkError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Available on crate feature payments only.
Expand description

Backend-facing intervention lifecycle operations.

Required Methods§

Source

fn begin_intervention<'life0, 'async_trait>( &'life0 self, command: BeginInterventionCommand, ) -> Pin<Box<dyn Future<Output = Result<TransactionRecord, AdkError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Source

fn continue_intervention<'life0, 'async_trait>( &'life0 self, command: ContinueInterventionCommand, ) -> Pin<Box<dyn Future<Output = Result<TransactionRecord, AdkError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Implementors§