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
Methods from Deref<Target = Endpoint>
Methods from Deref<Target = 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
pub fn set_property<T>(
&self,
property: &dyn PropertySetter<T>,
value: T
) -> Result<(), OSStatus>
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.