Struct UmpMidi1
pub struct UmpMidi1 { /* private fields */ }Expand description
MIDI 1.0 short messages carried by UMP MT=1 (system) or MT=2 (channel). This changes packet representation only; it does not convert MIDI protocols.
Implementations§
§impl UmpMidi1
impl UmpMidi1
pub fn new(group: u8, message: MidiMessage) -> Result<Self, UmpError>
pub fn new(group: u8, message: MidiMessage) -> Result<Self, UmpError>
Selects a zero-based group. F7 End-of-Exclusive is reserved in UMP system messages and rejects even though it is a valid byte-stream status.
pub fn from_packet(packet: UmpPacket) -> Result<Self, UmpError>
pub fn from_packet(packet: UmpPacket) -> Result<Self, UmpError>
Decodes system or channel short messages, ignoring reserved padding and high reserved bits in data fields. The original packet retains those bits.
pub const fn message(self) -> MidiMessage
pub const fn message(self) -> MidiMessage
Original MIDI 1.0 message, preserving defined wire data.
Trait Implementations§
impl Copy for UmpMidi1
impl Eq for UmpMidi1
impl StructuralPartialEq for UmpMidi1
Auto Trait Implementations§
impl Freeze for UmpMidi1
impl RefUnwindSafe for UmpMidi1
impl Send for UmpMidi1
impl Sync for UmpMidi1
impl Unpin for UmpMidi1
impl UnsafeUnpin for UmpMidi1
impl UnwindSafe for UmpMidi1
Blanket Implementations§
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more