#[non_exhaustive]#[repr(u8)]pub enum LocalDeviceType {
Gps = 0,
Glonass = 1,
GpsGlonass = 2,
Accelerometer = 3,
Barometer = 4,
Temperature = 5,
Whr = 10,
SensorHub = 12,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Gps = 0
Glonass = 1
GpsGlonass = 2
Accelerometer = 3
Barometer = 4
Temperature = 5
Whr = 10
SensorHub = 12
Implementations§
Trait Implementations§
Source§impl Clone for LocalDeviceType
impl Clone for LocalDeviceType
Source§fn clone(&self) -> LocalDeviceType
fn clone(&self) -> LocalDeviceType
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 LocalDeviceType
impl Debug for LocalDeviceType
Source§impl Hash for LocalDeviceType
impl Hash for LocalDeviceType
Source§impl PartialEq for LocalDeviceType
impl PartialEq for LocalDeviceType
Source§fn eq(&self, other: &LocalDeviceType) -> bool
fn eq(&self, other: &LocalDeviceType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LocalDeviceType
impl Eq for LocalDeviceType
impl StructuralPartialEq for LocalDeviceType
Auto Trait Implementations§
impl Freeze for LocalDeviceType
impl RefUnwindSafe for LocalDeviceType
impl Send for LocalDeviceType
impl Sync for LocalDeviceType
impl Unpin for LocalDeviceType
impl UnsafeUnpin for LocalDeviceType
impl UnwindSafe for LocalDeviceType
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