Enum riot_wrappers::saul::SensorClass
source · #[non_exhaustive]pub enum SensorClass {
Show 28 variants
Btn,
Temp,
Hum,
Light,
Accel,
Mag,
Gyro,
Color,
Press,
Analog,
Uv,
Objtemp,
Count,
Distance,
Co2,
Tvoc,
Gas,
Occup,
Proximity,
Rssi,
Charge,
Current,
Pm,
Capacitance,
Voltage,
Ph,
Power,
Size,
}
Available on
riot_module_saul
only.Expand description
Classes of sensors; typically used as details on a Class
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.
Btn
Temp
Hum
Light
Accel
Mag
Gyro
Color
Press
Analog
Uv
Objtemp
Count
Distance
Co2
Tvoc
Gas
Occup
Proximity
Rssi
Charge
Current
Pm
Capacitance
Voltage
Ph
Power
Size
Trait Implementations§
source§impl Clone for SensorClass
impl Clone for SensorClass
source§fn clone(&self) -> SensorClass
fn clone(&self) -> SensorClass
Returns a copy 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 SensorClass
impl Debug for SensorClass
impl Copy for SensorClass
Auto Trait Implementations§
impl RefUnwindSafe for SensorClass
impl Send for SensorClass
impl Sync for SensorClass
impl Unpin for SensorClass
impl UnwindSafe for SensorClass
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