pub type AppEffectHandler = Box<dyn Fn(Vec<u8>, u64, Option<ActionEnvelope>, Option<ActionEnvelope>, Sender<(u64, Result<EffectPayload, String>, Option<ActionEnvelope>, Option<ActionEnvelope>)>) + Send + Sync>;Expand description
Callback signature for application-specific effect handlers.
The handler receives the opaque Vec<u8> payload from Effect::App(...),
plus the envelope metadata needed to send a result back on the channel.
Aliased Typeยง
pub struct AppEffectHandler(/* private fields */);