[−][src]Trait launchy::InputDevice
Associated Types
type Message
Associated Constants
const MIDI_CONNECTION_NAME: &'static str
const MIDI_DEVICE_KEYWORD: &'static str
Required methods
Loading content...Provided methods
#[must_use = "If not saved, the connection will be immediately dropped"]fn from_port<F>(
midi_input: MidiInput,
port: &MidiInputPort,
user_callback: F
) -> Result<InputDeviceHandler, MidiError> where
F: FnMut(Self::Message) + Send + 'static,
midi_input: MidiInput,
port: &MidiInputPort,
user_callback: F
) -> Result<InputDeviceHandler, MidiError> where
F: FnMut(Self::Message) + Send + 'static,
#[must_use = "If not saved, the connection will be immediately dropped"]fn from_port_polling(
midi_input: MidiInput,
port: &MidiInputPort
) -> Result<InputDeviceHandlerPolling<Self::Message>, MidiError> where
Self::Message: Send + 'static,
midi_input: MidiInput,
port: &MidiInputPort
) -> Result<InputDeviceHandlerPolling<Self::Message>, MidiError> where
Self::Message: Send + 'static,
#[must_use = "If not saved, the connection will be immediately dropped"]fn guess<F>(user_callback: F) -> Result<InputDeviceHandler, MidiError> where
F: FnMut(Self::Message) + Send + 'static,
F: FnMut(Self::Message) + Send + 'static,
Search the midi devices and choose the first midi device matching the wanted Launchpad type.
#[must_use = "If not saved, the connection will be immediately dropped"]fn guess_polling(
) -> Result<InputDeviceHandlerPolling<Self::Message>, MidiError> where
Self::Message: Send + 'static,
) -> 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.