pub struct OutputPort<'a> { /* private fields */ }
Expand description

Represents the output port of a PortMidi device.

Implementations

Construct a new OutputPort for the given device and buffer size.

If the device is not an output device an Error::NotAnOutputDevice is returned.

Write a single MidiEvent. Returns an Error::PortMidi(_) if something went wrong.

Write a buffer of midi events to the output port. Returns an Error::PortMidi(_) if something went wrong.

Write a single MidiMessage. Returns an Error::PortMidi(_) if something went wrong.

Returns the DeviceInfo of the Midi device that owns this port.

Trait Implementations

Executes the destructor for this type. 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.