pub trait EventDispatchClassifier<Event> {
type VoiceIdentifier: Eq + Copy;
// Required method
fn classify(
&self,
event: &Event,
) -> EventDispatchClass<Self::VoiceIdentifier>;
}
Expand description
Determine to what voices the event should be dispatched.
Required Associated Types§
Sourcetype VoiceIdentifier: Eq + Copy
type VoiceIdentifier: Eq + Copy
The identifier used to identify a specific voice.
Required Methods§
Sourcefn classify(&self, event: &Event) -> EventDispatchClass<Self::VoiceIdentifier>
fn classify(&self, event: &Event) -> EventDispatchClass<Self::VoiceIdentifier>
Classify how the event should be dispatched.