pub struct PatternSync {
pub track_id: usize,
pub slot: u8,
pub block: PatternBlock,
}Expand description
One pattern block on its way to the audio thread.
The app model produces these rather than sending them, because it has no channel and should not grow one: a frontend holds the sender and turns each of these into a command.
Fields§
§track_id: usize§slot: u8§block: PatternBlockImplementations§
Source§impl PatternSync
impl PatternSync
Sourcepub fn command(self) -> MixerCommand
pub fn command(self) -> MixerCommand
The command that carries this block.
Trait Implementations§
Source§impl Clone for PatternSync
impl Clone for PatternSync
Source§fn clone(&self) -> PatternSync
fn clone(&self) -> PatternSync
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 PatternSync
Source§impl Debug for PatternSync
impl Debug for PatternSync
Source§impl PartialEq for PatternSync
impl PartialEq for PatternSync
impl StructuralPartialEq for PatternSync
Auto Trait Implementations§
impl Freeze for PatternSync
impl RefUnwindSafe for PatternSync
impl Send for PatternSync
impl Sync for PatternSync
impl Unpin for PatternSync
impl UnsafeUnpin for PatternSync
impl UnwindSafe for PatternSync
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