#[repr(i32)]pub enum SensorType {
Show 21 variants
Voltage,
Current,
Power,
Clock,
Temperature,
Load,
Frequency,
Fan,
Flow,
Control,
Level,
Factor,
Data,
SmallData,
Throughput,
TimeSpan,
Energy,
Noise,
Conductivity,
Humidity,
Unknown(i32),
}Expand description
Types of sensors
Variants§
Voltage
Current
Power
Clock
Temperature
Load
Frequency
Fan
Flow
Control
Level
Factor
Data
SmallData
Throughput
TimeSpan
Energy
Noise
Conductivity
Humidity
Unknown(i32)
Trait Implementations§
Source§impl Clone for SensorType
impl Clone for SensorType
Source§fn clone(&self) -> SensorType
fn clone(&self) -> SensorType
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 SensorType
Source§impl Debug for SensorType
impl Debug for SensorType
Source§impl<'de> Deserialize<'de> for SensorType
impl<'de> Deserialize<'de> for SensorType
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
impl Eq for SensorType
Source§impl From<SensorType> for i32
impl From<SensorType> for i32
Source§fn from(enum_value: SensorType) -> Self
fn from(enum_value: SensorType) -> Self
Converts to this type from the input type.
Source§impl From<i32> for SensorType
impl From<i32> for SensorType
Source§impl FromPrimitive for SensorType
impl FromPrimitive for SensorType
Source§impl Ord for SensorType
impl Ord for SensorType
Source§fn cmp(&self, other: &SensorType) -> Ordering
fn cmp(&self, other: &SensorType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SensorType
impl PartialEq for SensorType
Source§fn eq(&self, other: &SensorType) -> bool
fn eq(&self, other: &SensorType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SensorType
impl PartialOrd for SensorType
Source§impl Serialize for SensorType
impl Serialize for SensorType
impl StructuralPartialEq for SensorType
Auto Trait Implementations§
impl Freeze for SensorType
impl RefUnwindSafe for SensorType
impl Send for SensorType
impl Sync for SensorType
impl Unpin for SensorType
impl UnsafeUnpin for SensorType
impl UnwindSafe for SensorType
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