Skip to main content

IntoSlotReadFunction

Trait IntoSlotReadFunction 

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

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

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