pub struct MidiStreamingHeader {
pub midi_version: u16,
pub total_length: u16,
}Expand description
Class-specific MIDIStreaming header descriptor.
Fields§
§midi_version: u16USB-MIDI class specification release in binary-coded decimal.
total_length: u16Total size of the class-specific MIDIStreaming descriptors.
Implementations§
Source§impl MidiStreamingHeader
impl MidiStreamingHeader
Sourcepub fn try_from_bytes(raw: &[u8]) -> Result<Self, MidiDescriptorError>
pub fn try_from_bytes(raw: &[u8]) -> Result<Self, MidiDescriptorError>
Parse a class-specific MIDIStreaming header descriptor.
Trait Implementations§
Source§impl Clone for MidiStreamingHeader
impl Clone for MidiStreamingHeader
Source§fn clone(&self) -> MidiStreamingHeader
fn clone(&self) -> MidiStreamingHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MidiStreamingHeader
Source§impl Debug for MidiStreamingHeader
impl Debug for MidiStreamingHeader
impl Eq for MidiStreamingHeader
Source§impl Format for MidiStreamingHeader
impl Format for MidiStreamingHeader
Source§impl PartialEq for MidiStreamingHeader
impl PartialEq for MidiStreamingHeader
impl StructuralPartialEq for MidiStreamingHeader
Auto Trait Implementations§
impl Freeze for MidiStreamingHeader
impl RefUnwindSafe for MidiStreamingHeader
impl Send for MidiStreamingHeader
impl Sync for MidiStreamingHeader
impl Unpin for MidiStreamingHeader
impl UnsafeUnpin for MidiStreamingHeader
impl UnwindSafe for MidiStreamingHeader
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