Struct coremidi::VirtualSource[][src]

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

A MIDI virtual source owned by a client.

A virtual source can be created like:

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

Implementations

Distributes incoming MIDI from a source to the client input ports which are connected to that source. See MIDIReceived

Methods from Deref<Target = Endpoint>

Unschedules previously-sent packets. See MIDIFlushOutput.

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

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.