Struct coremidi::Client[][src]

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

A MIDI client.

An object maintaining per-client state.

A simple example to create a Client:

let client = coremidi::Client::new("example-client").unwrap();

Implementations

Creates a new CoreMIDI client with support for notifications. See MIDIClientCreateWithBlock.

The notification callback will be called on the run loop that was current when this associated function is called.

It follows that this particular run loop needs to be running in order to actually receive notifications. The run loop can be started after the client has been created if need be. Please see the examples to know how.

Creates a new CoreMIDI client. See MIDIClientCreate.

Creates an output port through which the client may send outgoing MIDI messages to any MIDI destination. See MIDIOutputPortCreate.

Creates an input port through which the client may receive incoming MIDI 1.0 messages from any MIDI source. See MIDIInputPortCreate.

MIDIInputPortCreate is deprecated in CoreMIDI. Please consider using input_port_with_protocol instead

Creates an input port through which the client may receive incoming MIDI messages from any MIDI source. It allows to choose which MIDI Protocol to use. See MIDIInputPortCreateWithProtocol.

Creates a virtual source in the client. See MIDISourceCreate.

Creates a virtual destination in the client. See MIDIDestinationCreate.

MIDIDestinationCreate is deprecated in CoreMIDI. Please consider using virtual_destination_with_protocol instead

Creates a virtual destination in the client. It allows to choose which MIDI Protocol to use. See MIDIDestinationCreate.

Methods from Deref<Target = Object>

Get the name for the object.

Get the unique id for the object.

Get the display name for the object.

Sets an object’s string-type property.

Gets an object’s string-type property.

Sets an object’s integer-type property.

Gets an object’s integer-type property.

Sets an object’s boolean-type property.

CoreMIDI treats booleans as integers (0/1) but this API uses native bool types

Gets an object’s boolean-type property.

CoreMIDI treats booleans as integers (0/1) but this API uses native bool types

Trait Implementations

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

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

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.