#[non_exhaustive]pub enum SensorUnit {
Show 30 variants
None,
Centigrade,
VoltsDc,
VoltsAcPeak,
VoltsAcRms,
AmpsDc,
AmpsAcPeak,
AmpsAcRms,
Hertz,
Ohm,
Watt,
Kilogram,
Meter,
SquareMeter,
CubicMeter,
KilogramPerCubicMeter,
MeterPerSecond,
MeterPerSecondSquared,
Newton,
Joule,
Pascal,
Second,
Degree,
Steradian,
Candela,
Lumen,
Lux,
Ire,
Byte,
ManufacturerSpecific(u8),
}
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.
None
Centigrade
VoltsDc
VoltsAcPeak
VoltsAcRms
AmpsDc
AmpsAcPeak
AmpsAcRms
Hertz
Ohm
Watt
Kilogram
Meter
SquareMeter
CubicMeter
KilogramPerCubicMeter
MeterPerSecond
MeterPerSecondSquared
Newton
Joule
Pascal
Second
Degree
Steradian
Candela
Lumen
Lux
Ire
Byte
ManufacturerSpecific(u8)
Trait Implementations§
Source§impl Clone for SensorUnit
impl Clone for SensorUnit
Source§fn clone(&self) -> SensorUnit
fn clone(&self) -> SensorUnit
Returns a duplicate 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 Debug for SensorUnit
impl Debug for SensorUnit
Source§impl From<SensorUnit> for u8
impl From<SensorUnit> for u8
Source§fn from(value: SensorUnit) -> Self
fn from(value: SensorUnit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SensorUnit
impl PartialEq for SensorUnit
Source§impl TryFrom<u8> for SensorUnit
impl TryFrom<u8> for SensorUnit
impl Copy for SensorUnit
impl StructuralPartialEq for SensorUnit
Auto Trait Implementations§
impl Freeze for SensorUnit
impl RefUnwindSafe for SensorUnit
impl Send for SensorUnit
impl Sync for SensorUnit
impl Unpin for SensorUnit
impl UnwindSafe for SensorUnit
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