pub struct ScratchGestureConfig {
pub internal_sample_rate_hz: u32,
pub lookahead_frames: u32,
pub deck: PhysicalDeckConfig,
pub pressure: ScratchPressureCalibration,
}Expand description
Configures sample-clock scheduling and pointer calibration.
Fields§
§internal_sample_rate_hz: u32§lookahead_frames: u32§deck: PhysicalDeckConfig§pressure: ScratchPressureCalibrationImplementations§
Source§impl ScratchGestureConfig
impl ScratchGestureConfig
pub fn for_deck( deck: PhysicalDeckConfig, internal_sample_rate_hz: u32, lookahead_frames: u32, ) -> Result<Self, ScratchGestureError>
pub fn validate(self) -> Result<Self, ScratchGestureError>
pub fn maximum_hand_angular_velocity_rad_s(self) -> f64
Trait Implementations§
Source§impl Clone for ScratchGestureConfig
impl Clone for ScratchGestureConfig
Source§fn clone(&self) -> ScratchGestureConfig
fn clone(&self) -> ScratchGestureConfig
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 ScratchGestureConfig
Source§impl Debug for ScratchGestureConfig
impl Debug for ScratchGestureConfig
Source§impl<'de> Deserialize<'de> for ScratchGestureConfig
impl<'de> Deserialize<'de> for ScratchGestureConfig
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 ScratchGestureConfig
impl PartialEq for ScratchGestureConfig
Source§impl Serialize for ScratchGestureConfig
impl Serialize for ScratchGestureConfig
impl StructuralPartialEq for ScratchGestureConfig
Auto Trait Implementations§
impl Freeze for ScratchGestureConfig
impl RefUnwindSafe for ScratchGestureConfig
impl Send for ScratchGestureConfig
impl Sync for ScratchGestureConfig
impl Unpin for ScratchGestureConfig
impl UnsafeUnpin for ScratchGestureConfig
impl UnwindSafe for ScratchGestureConfig
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