pub struct MidiStreamingInterface {
pub interface_number: u8,
pub alternate_setting: u8,
pub header: Option<MidiStreamingHeader>,
pub in_jacks: Vec<MidiInJack, MAX_MIDI_JACKS>,
pub out_jacks: Vec<MidiOutJack, MAX_MIDI_JACKS>,
pub endpoints: Vec<MidiEndpointDescriptor, MAX_MIDI_ENDPOINTS>,
}Expand description
Parsed USB-MIDI 1.0 streaming interface and its jack topology.
Fields§
§interface_number: u8Standard USB interface number.
alternate_setting: u8Standard USB alternate-setting number.
header: Option<MidiStreamingHeader>Class-specific streaming header, when supplied by the device.
in_jacks: Vec<MidiInJack, MAX_MIDI_JACKS>MIDI IN jacks declared by this interface.
out_jacks: Vec<MidiOutJack, MAX_MIDI_JACKS>MIDI OUT jacks declared by this interface.
endpoints: Vec<MidiEndpointDescriptor, MAX_MIDI_ENDPOINTS>Physical bulk endpoints and their ordered cable associations.
Implementations§
Source§impl MidiStreamingInterface
impl MidiStreamingInterface
Sourcepub fn try_from_interface(
interface: &InterfaceDescriptorChain<'_>,
) -> Result<Self, MidiDescriptorError>
pub fn try_from_interface( interface: &InterfaceDescriptorChain<'_>, ) -> Result<Self, MidiDescriptorError>
Parse one MIDIStreaming interface and associate each endpoint with its jacks.
Trait Implementations§
Source§impl Clone for MidiStreamingInterface
impl Clone for MidiStreamingInterface
Source§fn clone(&self) -> MidiStreamingInterface
fn clone(&self) -> MidiStreamingInterface
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 moreSource§impl Debug for MidiStreamingInterface
impl Debug for MidiStreamingInterface
impl Eq for MidiStreamingInterface
Source§impl Format for MidiStreamingInterfacewhere
Option<MidiStreamingHeader>: Format,
Vec<MidiInJack, MAX_MIDI_JACKS>: Format,
Vec<MidiOutJack, MAX_MIDI_JACKS>: Format,
Vec<MidiEndpointDescriptor, MAX_MIDI_ENDPOINTS>: Format,
impl Format for MidiStreamingInterfacewhere
Option<MidiStreamingHeader>: Format,
Vec<MidiInJack, MAX_MIDI_JACKS>: Format,
Vec<MidiOutJack, MAX_MIDI_JACKS>: Format,
Vec<MidiEndpointDescriptor, MAX_MIDI_ENDPOINTS>: Format,
Source§impl PartialEq for MidiStreamingInterface
impl PartialEq for MidiStreamingInterface
impl StructuralPartialEq for MidiStreamingInterface
Auto Trait Implementations§
impl Freeze for MidiStreamingInterface
impl RefUnwindSafe for MidiStreamingInterface
impl Send for MidiStreamingInterface
impl Sync for MidiStreamingInterface
impl Unpin for MidiStreamingInterface
impl UnsafeUnpin for MidiStreamingInterface
impl UnwindSafe for MidiStreamingInterface
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