pub enum SequencerCommand {
Start,
Stop,
Reset {
sample_pos: u64,
},
SetPattern(String),
}Expand description
Commands sent to a running sequencer from another thread.
Variants§
Start
Start playback.
Stop
Stop playback.
Reset
Reset to the given sample position.
SetPattern(String)
Switch to a named pattern.
Trait Implementations§
Source§impl Clone for SequencerCommand
impl Clone for SequencerCommand
Source§fn clone(&self) -> SequencerCommand
fn clone(&self) -> SequencerCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SequencerCommand
impl Debug for SequencerCommand
Source§impl PartialEq for SequencerCommand
impl PartialEq for SequencerCommand
impl StructuralPartialEq for SequencerCommand
Auto Trait Implementations§
impl Freeze for SequencerCommand
impl RefUnwindSafe for SequencerCommand
impl Send for SequencerCommand
impl Sync for SequencerCommand
impl Unpin for SequencerCommand
impl UnsafeUnpin for SequencerCommand
impl UnwindSafe for SequencerCommand
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