pub trait Trigger: Send + Sync {
// Required methods
fn name(&self) -> String;
fn predicate(&self) -> Arc<dyn Op<bool>> ⓘ;
fn actions(&self) -> Vec<Arc<dyn Op<()>>>;
// Provided methods
fn perform<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
dry: &'life1 mut DryContext,
wet: &'life2 mut WetContext,
) -> Pin<Box<dyn Future<Output = OpResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn metadata(&self) -> OpMetadata { ... }
}Required Methods§
fn name(&self) -> String
fn predicate(&self) -> Arc<dyn Op<bool>> ⓘ
fn actions(&self) -> Vec<Arc<dyn Op<()>>>
Provided Methods§
fn perform<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
dry: &'life1 mut DryContext,
wet: &'life2 mut WetContext,
) -> Pin<Box<dyn Future<Output = OpResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn metadata(&self) -> OpMetadata
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".