pub enum VoiceState {
Free,
Active,
Releasing,
}Expand description
State of a single voice
Variants§
Free
Voice is not playing
Active
Voice is currently playing a note
Releasing
Voice is in release phase (gate off, but envelope still running)
Trait Implementations§
Source§impl Clone for VoiceState
impl Clone for VoiceState
Source§fn clone(&self) -> VoiceState
fn clone(&self) -> VoiceState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VoiceState
Source§impl Debug for VoiceState
impl Debug for VoiceState
impl Eq for VoiceState
Source§impl PartialEq for VoiceState
impl PartialEq for VoiceState
impl StructuralPartialEq for VoiceState
Auto Trait Implementations§
impl Freeze for VoiceState
impl RefUnwindSafe for VoiceState
impl Send for VoiceState
impl Sync for VoiceState
impl Unpin for VoiceState
impl UnsafeUnpin for VoiceState
impl UnwindSafe for VoiceState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more