Skip to main content

IntoSlotWriteFunction

Trait IntoSlotWriteFunction 

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

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

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