pub trait EffectHandler: Send + Sync {
// Required method
fn handle<'life0, 'async_trait>(
&'life0 self,
effect: Effect,
) -> Pin<Box<dyn Future<Output = EffectResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Effect handler trait for processing plugin effects
Implement this trait to handle effects from plugins. The host calls this handler when a plugin yields an effect.