pub enum SessionOp {
ReadCurrent,
ReadPrograms(Vec<u16>),
WritePrograms(Vec<(u16, Vec<u8>)>),
Audition(Vec<u8>),
}Expand description
A generic operation on a connected synth.
Variants§
ReadCurrent
Read the edit buffer: the program the synth plays now.
ReadPrograms(Vec<u16>)
Read these slots, in this order.
WritePrograms(Vec<(u16, Vec<u8>)>)
Store programs; the driver plans the exact sequence that leaves the synth committed and safe to read.
Audition(Vec<u8>)
Load a program into the edit buffer without storing it.
Trait Implementations§
impl Eq for SessionOp
impl StructuralPartialEq for SessionOp
Auto Trait Implementations§
impl Freeze for SessionOp
impl RefUnwindSafe for SessionOp
impl Send for SessionOp
impl Sync for SessionOp
impl Unpin for SessionOp
impl UnsafeUnpin for SessionOp
impl UnwindSafe for SessionOp
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