pub trait ReactorRule: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn react(
&self,
event: &ReactorEvent,
voice: &VoiceRuntimeState,
) -> Vec<Reaction>;
}Expand description
A rule that reacts to normalized events and emits typed effects.
Required Methods§
Sourcefn react(
&self,
event: &ReactorEvent,
voice: &VoiceRuntimeState,
) -> Vec<Reaction>
fn react( &self, event: &ReactorEvent, voice: &VoiceRuntimeState, ) -> Vec<Reaction>
Produce reactions for a normalized event.