[−][src]Enum polyphony::EventDispatchClass
Describe how an event should be dispatched.
Example.
Suppose events are dispatched based on the tone that is played.
Then EventDispatchClass::VoiceSpecific(ToneIdentifier(60))
means that this event
should be dispatched to whatever voice is currently playing the tone with midi number 60
(central C on the piano).
Variants
The event should be dispatched to all voices
The event should be dispatched to a newly created voice with the given identifier
The event should be dispatched to an already existing voice with the given identifier
Trait Implementations
impl<Identifier: Clone> Clone for EventDispatchClass<Identifier>
[src]
fn clone(&self) -> EventDispatchClass<Identifier>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Identifier: Copy> Copy for EventDispatchClass<Identifier>
[src]
impl<Identifier: Debug> Debug for EventDispatchClass<Identifier>
[src]
impl<Identifier: Eq> Eq for EventDispatchClass<Identifier>
[src]
impl<Identifier: PartialEq> PartialEq<EventDispatchClass<Identifier>> for EventDispatchClass<Identifier>
[src]
fn eq(&self, other: &EventDispatchClass<Identifier>) -> bool
[src]
fn ne(&self, other: &EventDispatchClass<Identifier>) -> bool
[src]
impl<Identifier> StructuralEq for EventDispatchClass<Identifier>
[src]
impl<Identifier> StructuralPartialEq for EventDispatchClass<Identifier>
[src]
Auto Trait Implementations
impl<Identifier> RefUnwindSafe for EventDispatchClass<Identifier> where
Identifier: RefUnwindSafe,
Identifier: RefUnwindSafe,
impl<Identifier> Send for EventDispatchClass<Identifier> where
Identifier: Send,
Identifier: Send,
impl<Identifier> Sync for EventDispatchClass<Identifier> where
Identifier: Sync,
Identifier: Sync,
impl<Identifier> Unpin for EventDispatchClass<Identifier> where
Identifier: Unpin,
Identifier: Unpin,
impl<Identifier> UnwindSafe for EventDispatchClass<Identifier> where
Identifier: UnwindSafe,
Identifier: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,