#[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 Freeze for SensorClass
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoSwitch for T
impl<T> IntoSwitch for T
Source§fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
Source§fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Btn
: 0 bytesTemp
: 0 bytesHum
: 0 bytesLight
: 0 bytesAccel
: 0 bytesMag
: 0 bytesGyro
: 0 bytesColor
: 0 bytesPress
: 0 bytesAnalog
: 0 bytesUv
: 0 bytesObjtemp
: 0 bytesCount
: 0 bytesDistance
: 0 bytesCo2
: 0 bytesTvoc
: 0 bytesGas
: 0 bytesOccup
: 0 bytesProximity
: 0 bytesRssi
: 0 bytesCharge
: 0 bytesCurrent
: 0 bytesPm
: 0 bytesCapacitance
: 0 bytesVoltage
: 0 bytesPh
: 0 bytesPower
: 0 bytesSize
: 0 bytes