Struct coremidi::OutputPort[][src]

pub struct OutputPort { /* fields omitted */ }
Expand description

An output MIDI port owned by a client.

A simple example to create an output port and send a MIDI event:

use coremidi::{Client, Destination, EventBuffer, Protocol};
let client = Client::new("example-client").unwrap();
let output_port = client.output_port("example-port").unwrap();
let destination = Destination::from_index(0).unwrap();
let events = EventBuffer::new(Protocol::Midi10).with_packet(0, &[0x2090407f]);
output_port.send(&destination, &events).unwrap();

Implementations

Send a list of packets to a destination. See MIDISendEventList See MIDISend.

Trait Implementations

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

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

Performs the conversion.

Performs the conversion.

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.