pub enum PlayerMode {
Through,
Replace,
Filter,
Sidechain,
SelfClocked,
}Expand description
How a chain device combines its output with the events flowing through it.
Variants§
Through
Pass input through and append generated events.
Replace
Drop input and emit only generated events.
Filter
Filter input by lane, dropping matched events.
Sidechain
Route input while generating side events without merging them.
SelfClocked
Drop input and emit self-clocked generated events.
Implementations§
Source§impl PlayerMode
impl PlayerMode
Sourcepub fn wire_label(self) -> &'static str
pub fn wire_label(self) -> &'static str
Returns the stable wire label for this mode.
§Examples
use sim_lib_music_core::PlayerMode;
assert_eq!(PlayerMode::Through.wire_label(), "through");
assert_eq!(PlayerMode::SelfClocked.wire_label(), "self_clocked");Trait Implementations§
Source§impl Clone for PlayerMode
impl Clone for PlayerMode
Source§fn clone(&self) -> PlayerMode
fn clone(&self) -> PlayerMode
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 PlayerMode
Source§impl Debug for PlayerMode
impl Debug for PlayerMode
impl Eq for PlayerMode
Source§impl Hash for PlayerMode
impl Hash for PlayerMode
Source§impl Ord for PlayerMode
impl Ord for PlayerMode
Source§fn cmp(&self, other: &PlayerMode) -> Ordering
fn cmp(&self, other: &PlayerMode) -> 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 PlayerMode
impl PartialEq for PlayerMode
Source§impl PartialOrd for PlayerMode
impl PartialOrd for PlayerMode
impl StructuralPartialEq for PlayerMode
Auto Trait Implementations§
impl Freeze for PlayerMode
impl RefUnwindSafe for PlayerMode
impl Send for PlayerMode
impl Sync for PlayerMode
impl Unpin for PlayerMode
impl UnsafeUnpin for PlayerMode
impl UnwindSafe for PlayerMode
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