pub enum SensorKind {
Accelerometer,
Gyroscope,
Magnetometer,
}Expand description
Which motion sensor to query.
Variants§
Accelerometer
Acceleration (including gravity) along the device’s x/y/z axes, in m/s².
Gyroscope
Rotation rate around the device’s x/y/z axes, in rad/s.
Magnetometer
Ambient magnetic field along the device’s x/y/z axes, in µT.
Trait Implementations§
Source§impl Clone for SensorKind
impl Clone for SensorKind
Source§fn clone(&self) -> SensorKind
fn clone(&self) -> SensorKind
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 moreSource§impl Debug for SensorKind
impl Debug for SensorKind
Source§impl Hash for SensorKind
impl Hash for SensorKind
Source§impl PartialEq for SensorKind
impl PartialEq for SensorKind
Source§fn eq(&self, other: &SensorKind) -> bool
fn eq(&self, other: &SensorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SensorKind
impl Eq for SensorKind
impl StructuralPartialEq for SensorKind
Auto Trait Implementations§
impl Freeze for SensorKind
impl RefUnwindSafe for SensorKind
impl Send for SensorKind
impl Sync for SensorKind
impl Unpin for SensorKind
impl UnsafeUnpin for SensorKind
impl UnwindSafe for SensorKind
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