#[non_exhaustive]pub enum Unit {
Celsius,
Percentage,
ArcDegrees,
Lux,
Seconds,
Ppm,
MicrogramsPerM3,
}Expand description
A unit a HAP characteristic value can carry.
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.
Celsius
celsius
Percentage
percentage
ArcDegrees
arcdegrees
Lux
lux
Seconds
seconds
Ppm
ppm
MicrogramsPerM3
micrograms/m^3
Implementations§
Trait Implementations§
impl Copy for Unit
impl Eq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnsafeUnpin for Unit
impl UnwindSafe for Unit
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