pub struct MidiEndpoint {
pub address: u8,
pub max_packet_size: u16,
pub ep_type: EndpointType,
pub interval: u8,
/* private fields */
}Expand description
A MIDI data endpoint and the jack or Group Terminal Block IDs it carries.
Fields§
§address: u8USB endpoint address, including its direction bit.
max_packet_size: u16Maximum USB packet size.
ep_type: EndpointTypeTransfer type. USB MIDI 2.0 §5.3 allows bulk or interrupt.
interval: u8Raw bInterval. Zero for bulk (§5.3.1); the polling interval for interrupt (Appendix B.8).
Implementations§
Source§impl MidiEndpoint
impl MidiEndpoint
Trait Implementations§
Source§impl Clone for MidiEndpoint
impl Clone for MidiEndpoint
impl Copy for MidiEndpoint
Source§impl Debug for MidiEndpoint
impl Debug for MidiEndpoint
impl Eq for MidiEndpoint
Source§impl Format for MidiEndpoint
impl Format for MidiEndpoint
Source§impl PartialEq for MidiEndpoint
impl PartialEq for MidiEndpoint
impl StructuralPartialEq for MidiEndpoint
Auto Trait Implementations§
impl Forget for MidiEndpoint
impl Freeze for MidiEndpoint
impl Move for MidiEndpoint
impl RefUnwindSafe for MidiEndpoint
impl Send for MidiEndpoint
impl Sync for MidiEndpoint
impl Unpin for MidiEndpoint
impl UnsafeUnpin for MidiEndpoint
impl UnwindSafe for MidiEndpoint
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