pub struct LinearAccelerationCallbackConfiguration {
pub period: u32,
pub value_has_to_change: bool,
}
Fields§
§period: u32
§value_has_to_change: bool
Trait Implementations§
source§impl Clone for LinearAccelerationCallbackConfiguration
impl Clone for LinearAccelerationCallbackConfiguration
source§fn clone(&self) -> LinearAccelerationCallbackConfiguration
fn clone(&self) -> LinearAccelerationCallbackConfiguration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for LinearAccelerationCallbackConfiguration
impl Default for LinearAccelerationCallbackConfiguration
source§fn default() -> LinearAccelerationCallbackConfiguration
fn default() -> LinearAccelerationCallbackConfiguration
Returns the “default value” for a type. Read more
source§impl FromByteSlice for LinearAccelerationCallbackConfiguration
impl FromByteSlice for LinearAccelerationCallbackConfiguration
source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
source§fn from_le_byte_slice(bytes: &[u8]) -> LinearAccelerationCallbackConfiguration
fn from_le_byte_slice(bytes: &[u8]) -> LinearAccelerationCallbackConfiguration
Deserialize the implementing type from a byte slice.
source§impl PartialEq for LinearAccelerationCallbackConfiguration
impl PartialEq for LinearAccelerationCallbackConfiguration
source§fn eq(&self, other: &LinearAccelerationCallbackConfiguration) -> bool
fn eq(&self, other: &LinearAccelerationCallbackConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for LinearAccelerationCallbackConfiguration
impl Eq for LinearAccelerationCallbackConfiguration
impl StructuralPartialEq for LinearAccelerationCallbackConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for LinearAccelerationCallbackConfiguration
impl Send for LinearAccelerationCallbackConfiguration
impl Sync for LinearAccelerationCallbackConfiguration
impl Unpin for LinearAccelerationCallbackConfiguration
impl UnwindSafe for LinearAccelerationCallbackConfiguration
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