Struct midir::MidiOutputConnection
[−]
[src]
pub struct MidiOutputConnection { /* fields omitted */ }
Represents an open connection to a MIDI output port.
Methods
impl MidiOutputConnection
[src]
fn close(self) -> MidiOutput
[src]
Closes the connection. The returned value allows you to
reuse the MidiOutput
object, but it can be safely ignored.
fn send(&mut self, message: &[u8]) -> Result<(), SendError>
[src]
Send a message to the port that this output connection is connected to. The message must be a valid MIDI message (see https://www.midi.org/specifications/item/table-1-summary-of-midi-message).