pub enum Msg {
Cc {
ch: u8,
cc: u8,
val: u8,
},
Pc {
ch: u8,
prog: u8,
},
Nep {
cmd: u8,
dir: u8,
payload: Vec<u8>,
},
Notify {
what: u8,
payload: Vec<u8>,
},
Short {
kind: u8,
payload: Vec<u8>,
},
Other(Vec<u8>),
}Expand description
One parsed MIDI message.
Variants§
Cc
Pc
Nep
F0 00 21 7A 70 <cmd> <dir> <payload> F7
Notify
F0 00 21 7A 70 7E 02 <what> 02 <payload> F7
Short
F0 00 21 7A <kind> <payload> F7 (00/10 version, 60 product)
Other(Vec<u8>)
Anything else (other manufacturers, realtime, note on/off…).
Implementations§
Trait Implementations§
impl Eq for Msg
impl StructuralPartialEq for Msg
Auto Trait Implementations§
impl Freeze for Msg
impl RefUnwindSafe for Msg
impl Send for Msg
impl Sync for Msg
impl Unpin for Msg
impl UnsafeUnpin for Msg
impl UnwindSafe for Msg
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