Struct launchy::launch_control::Input
source · 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>where F: FnMut(Self::Message) + Send + 'static,
fn from_port_polling( midi_input: MidiInput, port: &MidiInputPort ) -> Result<InputDeviceHandlerPolling<Self::Message>, MidiError>where Self::Message: Send + 'static,
source§fn guess<F>(user_callback: F) -> Result<InputDeviceHandler, MidiError>where
F: FnMut(Self::Message) + Send + 'static,
fn guess<F>(user_callback: F) -> Result<InputDeviceHandler, MidiError>where F: FnMut(Self::Message) + Send + 'static,
Search the midi devices and choose the first midi device matching the wanted Launchpad type.
source§fn guess_polling(
) -> Result<InputDeviceHandlerPolling<Self::Message>, MidiError>where
Self::Message: Send + 'static,
fn guess_polling( ) -> Result<InputDeviceHandlerPolling<Self::Message>, MidiError>where Self::Message: Send + 'static,
Search the midi devices and choose the first midi device matching the wanted Launchpad type.
Auto Trait Implementations§
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