Skip to main content

IntoEffectFunction

Trait IntoEffectFunction 

Source
pub trait IntoEffectFunction<C, Args, Return>:
    Effect<C, Args, Return>
    + Send
    + Sync
    + 'static
where C: HostSchema,
{ }
Expand description

A callback accepted by crate::HostFunction::effect.

Implemented automatically for matching closures and function pointers. This sealed trait can be used as a generic bound.

Implementors§

Source§

impl<C: HostSchema, Args, Return, F> IntoEffectFunction<C, Args, Return> for F
where F: Effect<C, Args, Return> + Send + Sync + 'static,