Struct coremidi::Source [−][src]
pub struct Source { /* fields omitted */ }
Expand description
A MIDI source owned by an entity.
A source can be created from an index like this:
let source = coremidi::Source::from_index(0).unwrap();
println!("The source at index 0 has display name '{}'", source.display_name().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
Auto Trait Implementations
impl RefUnwindSafe for Source
impl UnwindSafe for Source
Blanket Implementations
Mutably borrows from an owned value. Read more