pub enum Command {
Connect(String),
Disconnect,
Resync,
SetSync(bool),
Send(Vec<u8>),
Write(Vec<Vec<u8>>),
Replay {
path: PathBuf,
speed: f32,
},
StopReplay,
}Variants§
Connect(String)
Connect to a MIDI input port by name (and the matching output).
Disconnect
Resync
Read everything again (sends Update::Reset first).
SetSync(bool)
Whether the engine may send anything (sync reads and edits). Off = pure listening.
Send(Vec<u8>)
Send a live message (CC/PC) right away.
Write(Vec<Vec<u8>>)
Queue messages to send in order; SysEx writes wait for the pedal’s ack.
Replay
Play a capture log (docs/07) back instead of a pedal, at speed× its original timing.
StopReplay
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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