pub enum MusicCapability {
Playable,
Player,
Modulator,
Oscillator,
PerformanceSource,
Renderable,
}Expand description
A capability a music component advertises to the runtime.
Capabilities describe what a component can do (be played, drive other
components, render, and so on) and are carried in a
MusicComponentDescriptor.
Variants§
Playable
The component can be played as part of a performance.
Player
The component plays incoming material (a player-family component).
Modulator
The component produces a control/modulation signal.
Oscillator
The component generates an oscillating signal.
PerformanceSource
The component is a source of live performance events.
Renderable
The component can be rendered to output.
Implementations§
Source§impl MusicCapability
impl MusicCapability
Sourcepub fn wire_label(self) -> &'static str
pub fn wire_label(self) -> &'static str
Returns the stable wire label for this capability.
§Examples
use sim_lib_music_core::MusicCapability;
assert_eq!(MusicCapability::Playable.wire_label(), "playable");
assert_eq!(MusicCapability::PerformanceSource.wire_label(), "performance-source");Trait Implementations§
Source§impl Clone for MusicCapability
impl Clone for MusicCapability
Source§fn clone(&self) -> MusicCapability
fn clone(&self) -> MusicCapability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MusicCapability
Source§impl Debug for MusicCapability
impl Debug for MusicCapability
impl Eq for MusicCapability
Source§impl Hash for MusicCapability
impl Hash for MusicCapability
Source§impl Ord for MusicCapability
impl Ord for MusicCapability
Source§fn cmp(&self, other: &MusicCapability) -> Ordering
fn cmp(&self, other: &MusicCapability) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MusicCapability
impl PartialEq for MusicCapability
Source§impl PartialOrd for MusicCapability
impl PartialOrd for MusicCapability
impl StructuralPartialEq for MusicCapability
Auto Trait Implementations§
impl Freeze for MusicCapability
impl RefUnwindSafe for MusicCapability
impl Send for MusicCapability
impl Sync for MusicCapability
impl Unpin for MusicCapability
impl UnsafeUnpin for MusicCapability
impl UnwindSafe for MusicCapability
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more