Struct coremidi::VirtualDestination [−][src]
pub struct VirtualDestination { /* fields omitted */ }
Expand description
A MIDI virtual destination owned by a client.
A virtual destination can be created like:
use coremidi::Protocol;
let client = coremidi::Client::new("example-client").unwrap();
client.virtual_destination_with_protocol("example-destination", Protocol::Midi10, |event_list| println!("{:?}", event_list)).unwrap();
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 !=
.