pub struct MidiOutput { /* private fields */ }
Expand description

An instance of MidiOutput is required for anything related to MIDI output. Create one with MidiOutput::new.

Implementations

Creates a new MidiOutput object that is required for any MIDI output functionality.

Get a collection of all MIDI output ports that midir can connect to. The resulting vector contains one object per port, which you can use to query metadata about the port or connect to it in order to send MIDI messages.

Get the number of available MIDI output ports that midir can connect to.

Get the name of a specified MIDI output port.

An error will be returned when the port is no longer valid (e.g. the respective device has been disconnected).

Connect to a specified MIDI output port in order to send messages. The connection will be kept open as long as the returned MidiOutputConnection is kept alive.

The port_name is an additional name that will be assigned to the connection. It is only used by some backends.

An error will be returned when the port is no longer valid (e.g. the respective device has been disconnected).

Trait Implementations

Type of an input or output port structure.

Get a collection of all MIDI input or output ports. The resulting vector contains one object per port, which you can use to query metadata about the port or connect to it. Read more

Get the number of available MIDI input or output ports.

Get the name of a specified MIDI input or output port. Read more

Creates a virtual output port. Once it has been created, other applications can connect to this port and will receive MIDI messages that are sent to this port. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.