pub trait EffectExecutor: Send + Sync {
// Required method
fn execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
request: &'life1 EffectRequest,
policy: &'life2 ExecutionPolicy,
context: &'life3 RunContext,
) -> Pin<Box<dyn Future<Output = Result<RawEffectOutput, ExecutionError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait;
}Expand description
Executes an already approved effect.
Required Methods§
Sourcefn execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
request: &'life1 EffectRequest,
policy: &'life2 ExecutionPolicy,
context: &'life3 RunContext,
) -> Pin<Box<dyn Future<Output = Result<RawEffectOutput, ExecutionError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
request: &'life1 EffectRequest,
policy: &'life2 ExecutionPolicy,
context: &'life3 RunContext,
) -> Pin<Box<dyn Future<Output = Result<RawEffectOutput, ExecutionError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
Executes an effect under the provided policy.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".