EventDispatchClassifier

Trait EventDispatchClassifier 

Source
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§

Source

type VoiceIdentifier: Eq + Copy

The identifier used to identify a specific voice.

Required Methods§

Source

fn classify(&self, event: &Event) -> EventDispatchClass<Self::VoiceIdentifier>

Classify how the event should be dispatched.

Implementors§