pub struct SysExPacket<'a> {
pub group: u8,
pub stream_id: u8,
pub bytes: &'a [u8],
}Expand description
One reassembled SysEx payload, in the form
crate::events::EventList::push_sysex expects: just the inner
bytes (no leading 0xF0, no trailing 0xF7), plus the UMP
routing keys (group + stream_id) for callers that care
about per-stream demux. stream_id is always 0 for SysEx-7
(the format has no stream identifier).
Fields§
§group: u8UMP group (0..=15) the message arrived on.
stream_id: u8SysEx-8 stream identifier (0..=255); always 0 for
SysEx-7.
bytes: &'a [u8]The reassembled inner bytes. Valid until the next call into the assembler.
Auto Trait Implementations§
impl<'a> Freeze for SysExPacket<'a>
impl<'a> RefUnwindSafe for SysExPacket<'a>
impl<'a> Send for SysExPacket<'a>
impl<'a> Sync for SysExPacket<'a>
impl<'a> Unpin for SysExPacket<'a>
impl<'a> UnsafeUnpin for SysExPacket<'a>
impl<'a> UnwindSafe for SysExPacket<'a>
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