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§
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,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".