pub struct UmpInputPipe<'d, A: UsbHostAllocator<'d>> { /* private fields */ }Expand description
Device-to-host Universal MIDI Packet (UMP / MIDI 2.0) transport.
Implementations§
Source§impl<'d, A: UsbHostAllocator<'d>> UmpInputPipe<'d, A>
impl<'d, A: UsbHostAllocator<'d>> UmpInputPipe<'d, A>
Sourcepub fn from_interrupt_pipe(pipe: A::Pipe<Interrupt, In>) -> Self
pub fn from_interrupt_pipe(pipe: A::Pipe<Interrupt, In>) -> Self
Use an already allocated interrupt IN pipe.
Sourcepub fn open(
alloc: &A,
endpoint: &MidiEndpointDescriptor,
enum_info: &EnumerationInfo,
) -> Result<Self, MidiError>
pub fn open( alloc: &A, endpoint: &MidiEndpointDescriptor, enum_info: &EnumerationInfo, ) -> Result<Self, MidiError>
Allocate a pipe for a device-to-host MIDI 2.0 endpoint.
Trait Implementations§
Source§impl<'d, A: UsbHostAllocator<'d>> From<MidiInputPipe<'d, A>> for UmpInputPipe<'d, A>
impl<'d, A: UsbHostAllocator<'d>> From<MidiInputPipe<'d, A>> for UmpInputPipe<'d, A>
Source§fn from(pipe: MidiInputPipe<'d, A>) -> Self
fn from(pipe: MidiInputPipe<'d, A>) -> Self
Converts to this type from the input type.
Source§impl<'d, A: UsbHostAllocator<'d>> From<UmpInputPipe<'d, A>> for MidiInputPipe<'d, A>
impl<'d, A: UsbHostAllocator<'d>> From<UmpInputPipe<'d, A>> for MidiInputPipe<'d, A>
Source§fn from(pipe: UmpInputPipe<'d, A>) -> Self
fn from(pipe: UmpInputPipe<'d, A>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'d, A> Forget for UmpInputPipe<'d, A>
impl<'d, A> Freeze for UmpInputPipe<'d, A>where
DataIn<'d, A>: Freeze,
impl<'d, A> Move for UmpInputPipe<'d, A>
impl<'d, A> RefUnwindSafe for UmpInputPipe<'d, A>where
DataIn<'d, A>: RefUnwindSafe,
impl<'d, A> Send for UmpInputPipe<'d, A>where
DataIn<'d, A>: Send,
impl<'d, A> Sync for UmpInputPipe<'d, A>where
DataIn<'d, A>: Sync,
impl<'d, A> Unpin for UmpInputPipe<'d, A>where
DataIn<'d, A>: Unpin,
impl<'d, A> UnsafeUnpin for UmpInputPipe<'d, A>where
DataIn<'d, A>: UnsafeUnpin,
impl<'d, A> UnwindSafe for UmpInputPipe<'d, A>where
DataIn<'d, A>: UnwindSafe,
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