pub struct HapticRecord {
pub contact_position_m: [f32; 3],
pub contact_area_m2: f32,
pub force_local_xyz_n: [f32; 3],
pub normal_indentation_m: f32,
pub displacement_local_xyz_m: [f32; 3],
pub carrier_hz: f32,
pub validity_bits: u32,
pub contact_ref: u32,
}Expand description
Canonical 64-byte Q07 mode 0x0106 haptic sample record.
Fields§
§contact_position_m: [f32; 3]§contact_area_m2: f32§force_local_xyz_n: [f32; 3]§normal_indentation_m: f32§displacement_local_xyz_m: [f32; 3]§carrier_hz: f32§validity_bits: u32§contact_ref: u32Implementations§
Source§impl HapticRecord
impl HapticRecord
pub fn validate(&self, externally_valid: bool) -> Result<(), ProfileError>
pub fn decode( bytes: &[u8], externally_valid: bool, ) -> Result<Self, ProfileError>
pub fn encode_into( &self, out: &mut [u8], externally_valid: bool, ) -> Result<(), ProfileError>
Trait Implementations§
Source§impl Clone for HapticRecord
impl Clone for HapticRecord
impl Copy for HapticRecord
Source§impl Debug for HapticRecord
impl Debug for HapticRecord
Source§impl PartialEq for HapticRecord
impl PartialEq for HapticRecord
impl StructuralPartialEq for HapticRecord
Auto Trait Implementations§
impl Freeze for HapticRecord
impl RefUnwindSafe for HapticRecord
impl Send for HapticRecord
impl Sync for HapticRecord
impl Unpin for HapticRecord
impl UnsafeUnpin for HapticRecord
impl UnwindSafe for HapticRecord
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more