Skip to main content

IntoInputFunction

Trait IntoInputFunction 

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

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

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> IntoInputFunction<C, Args, Return> for F
where F: Input<C, Args, Return> + Send + Sync + 'static,