midi-io 0.1.0

Stream and send strictly-typed MIDI messages
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Debug, Clone, Copy, PartialEq, Eq, thiserror::Error)]
#[non_exhaustive]
pub enum SysExError {
    #[error("sysex must begin with a 0xF0 start byte")]
    MissingStart,
    #[error("sysex must end with a 0xF7 end byte")]
    Unterminated,
    #[error("sysex has no body byte between 0xF0 and 0xF7")]
    EmptyBody,
    #[error("sysex body is {len} bytes, larger than the maximum of {max}")]
    TooLong { len: usize, max: usize },
    #[error("sysex body byte 0x{byte:02x} at index {index} is not a 7-bit value")]
    HighBit { index: usize, byte: u8 },
}