Trait launchy::OutputDevice

source ·
pub trait OutputDevicewhere
    Self: Sized,{
    const MIDI_CONNECTION_NAME: &'static str;
    const MIDI_DEVICE_KEYWORD: &'static str;

    // Required methods
    fn from_connection(
        connection: MidiOutputConnection
    ) -> Result<Self, MidiError>;
    fn send(&mut self, bytes: &[u8]) -> Result<(), MidiError>;

    // Provided method
    fn guess() -> Result<Self, MidiError> { ... }
}

Required Associated Constants§

Required Methods§

source

fn from_connection(connection: MidiOutputConnection) -> Result<Self, MidiError>

Initiate from an existing midir connection.

source

fn send(&mut self, bytes: &[u8]) -> Result<(), MidiError>

Provided Methods§

Implementors§

source§

impl OutputDevice for launchy::launch_control::Output

source§

const MIDI_CONNECTION_NAME: &'static str = "Launchy Launch Control output"

source§

const MIDI_DEVICE_KEYWORD: &'static str = "Launch Control"

source§

impl OutputDevice for launchy::launchpad_mini::Output

source§

const MIDI_CONNECTION_NAME: &'static str = "Launchy Mini output"

source§

const MIDI_DEVICE_KEYWORD: &'static str = "Launchpad Mini"

source§

impl OutputDevice for launchy::launchpad_mk2::Output

source§

const MIDI_CONNECTION_NAME: &'static str = "Launchy Mk2 output"

source§

const MIDI_DEVICE_KEYWORD: &'static str = "Launchpad MK2"

source§

impl OutputDevice for launchy::launchpad_s::Output

source§

const MIDI_CONNECTION_NAME: &'static str = "Launchy S output"

source§

const MIDI_DEVICE_KEYWORD: &'static str = "Launchpad S"