Skip to main content

SkillHandler

Type Alias SkillHandler 

Source
pub type SkillHandler = Arc<dyn for<'a> Fn(&'a mut Context, &'a mut World) -> Pin<Box<dyn Future<Output = Result<(), SkillError>> + Send + 'a>> + Sync + Send>;
Expand description

Optional in-process handler attached to a skill (only #[skill]-generated skills carry one).

Aliased Type§

pub struct SkillHandler { /* private fields */ }