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§
const MIDI_CONNECTION_NAME: &'static str
const MIDI_DEVICE_KEYWORD: &'static str
Required Methods§
sourcefn from_connection(connection: MidiOutputConnection) -> Result<Self, MidiError>
fn from_connection(connection: MidiOutputConnection) -> Result<Self, MidiError>
Initiate from an existing midir connection.