pub struct PlayerControl {
pub deck: DeckMechanicalControl,
pub stylus_lowered: bool,
pub scratch_preset: ScratchPreset,
pub scratch_clicks: u8,
pub manual_crossfader_gain: f64,
}Expand description
One complete player control state at an exact render frame.
Fields§
§deck: DeckMechanicalControl§stylus_lowered: bool§scratch_preset: ScratchPreset§scratch_clicks: u8§manual_crossfader_gain: f64Implementations§
Source§impl PlayerControl
impl PlayerControl
pub const fn new(deck: DeckMechanicalControl, stylus_lowered: bool) -> Self
Sourcepub const fn with_scratch(
self,
preset: ScratchPreset,
clicks: u8,
manual_crossfader_gain: f64,
) -> Self
pub const fn with_scratch( self, preset: ScratchPreset, clicks: u8, manual_crossfader_gain: f64, ) -> Self
Sets the complete scratch helper control for this sample-timed state.
Trait Implementations§
Source§impl Clone for PlayerControl
impl Clone for PlayerControl
Source§fn clone(&self) -> PlayerControl
fn clone(&self) -> PlayerControl
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 PlayerControl
Source§impl Debug for PlayerControl
impl Debug for PlayerControl
Source§impl Default for PlayerControl
impl Default for PlayerControl
Source§impl<'de> Deserialize<'de> for PlayerControl
impl<'de> Deserialize<'de> for PlayerControl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PlayerControl
impl PartialEq for PlayerControl
Source§impl Serialize for PlayerControl
impl Serialize for PlayerControl
impl StructuralPartialEq for PlayerControl
Auto Trait Implementations§
impl Freeze for PlayerControl
impl RefUnwindSafe for PlayerControl
impl Send for PlayerControl
impl Sync for PlayerControl
impl Unpin for PlayerControl
impl UnsafeUnpin for PlayerControl
impl UnwindSafe for PlayerControl
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