Skip to main content

CommandHandlerFn

Type Alias CommandHandlerFn 

Source
pub type CommandHandlerFn = Arc<dyn Fn(&mut World, Box<dyn Any + Send>) + Send + Sync>;
Expand description

Handler invoked when a Command::Typed with a matching TypeId is drained.

Aliased Typeยง

pub struct CommandHandlerFn { /* private fields */ }