pub struct Input;Expand description
The Launch Control input connection creator.
Trait Implementations§
Source§impl InputDevice for Input
impl InputDevice for Input
const MIDI_CONNECTION_NAME: &'static str = "Launchy Launch Control input"
const MIDI_DEVICE_KEYWORD: &'static str = "Launch Control"
type Message = Message
fn decode_message(_timestamp: u64, data: &[u8]) -> Message
fn from_port<F>( midi_input: MidiInput, port: &MidiInputPort, user_callback: F, ) -> Result<InputDeviceHandler, MidiError>
fn from_port_polling( midi_input: MidiInput, port: &MidiInputPort, ) -> Result<InputDeviceHandlerPolling<Self::Message>, MidiError>
Source§fn guess<F>(user_callback: F) -> Result<InputDeviceHandler, MidiError>
fn guess<F>(user_callback: F) -> Result<InputDeviceHandler, MidiError>
Search the midi devices and choose the first midi device matching the wanted Launchpad type.
Source§fn guess_polling() -> Result<InputDeviceHandlerPolling<Self::Message>, MidiError>
fn guess_polling() -> Result<InputDeviceHandlerPolling<Self::Message>, MidiError>
Search the midi devices and choose the first midi device matching the wanted Launchpad type.
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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