[][src]Enum polyphony::simple_event_dispatching::SimpleVoiceState

pub enum SimpleVoiceState<Identifier> where
    Identifier: Copy + Eq
{ Idle, Releasing(Identifier), Active(Identifier), }

A simple voice state

Variants

Idle

The voice is idle (in other words: doing nothing).

Releasing(Identifier)

The voice has received a signal to stop, but is still rendering audio (e.g. some reverb after the end of the audio).

The VoiceIdentifier indicates what it is still rendering.

Active(Identifier)

The voice has not yet received a signal to stop and is still rendering audio.

Trait Implementations

impl<Identifier: Clone> Clone for SimpleVoiceState<Identifier> where
    Identifier: Copy + Eq
[src]

impl<Identifier: Copy> Copy for SimpleVoiceState<Identifier> where
    Identifier: Copy + Eq
[src]

impl<Identifier: Debug> Debug for SimpleVoiceState<Identifier> where
    Identifier: Copy + Eq
[src]

impl<Identifier: Eq> Eq for SimpleVoiceState<Identifier> where
    Identifier: Copy + Eq
[src]

impl<Identifier: PartialEq> PartialEq<SimpleVoiceState<Identifier>> for SimpleVoiceState<Identifier> where
    Identifier: Copy + Eq
[src]

impl<Identifier> StructuralEq for SimpleVoiceState<Identifier> where
    Identifier: Copy + Eq
[src]

impl<Identifier> StructuralPartialEq for SimpleVoiceState<Identifier> where
    Identifier: Copy + Eq
[src]

Auto Trait Implementations

impl<Identifier> RefUnwindSafe for SimpleVoiceState<Identifier> where
    Identifier: RefUnwindSafe

impl<Identifier> Send for SimpleVoiceState<Identifier> where
    Identifier: Send

impl<Identifier> Sync for SimpleVoiceState<Identifier> where
    Identifier: Sync

impl<Identifier> Unpin for SimpleVoiceState<Identifier> where
    Identifier: Unpin

impl<Identifier> UnwindSafe for SimpleVoiceState<Identifier> where
    Identifier: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.