pub enum SensorKind {
Temperature,
Imu,
Camera,
Audio,
Distance,
Pressure,
Encoder,
Gps,
Power,
Custom,
}Expand description
Type of sensor reading.
Variants§
Temperature
Temperature sensor (CPU, ambient, motor).
Imu
IMU / accelerometer / gyroscope.
Camera
Camera / vision sensor.
Audio
Microphone / audio sensor.
Distance
Distance / range finder (ultrasonic, lidar, IR).
Pressure
Pressure / force sensor.
Encoder
Encoded motor position / joint angle.
Gps
GPS / global position.
Power
Power / current / voltage sensor.
Custom
Custom sensor type.
Implementations§
Trait Implementations§
Source§impl Clone for SensorKind
impl Clone for SensorKind
Source§fn clone(&self) -> SensorKind
fn clone(&self) -> SensorKind
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 SensorKind
Source§impl Debug for SensorKind
impl Debug for SensorKind
Source§impl<'de> Deserialize<'de> for SensorKind
impl<'de> Deserialize<'de> for SensorKind
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
Source§impl Display for SensorKind
impl Display for SensorKind
impl Eq for SensorKind
Source§impl Hash for SensorKind
impl Hash for SensorKind
Source§impl PartialEq for SensorKind
impl PartialEq for SensorKind
Source§impl Serialize for SensorKind
impl Serialize for SensorKind
impl StructuralPartialEq for SensorKind
Auto Trait Implementations§
impl Freeze for SensorKind
impl RefUnwindSafe for SensorKind
impl Send for SensorKind
impl Sync for SensorKind
impl Unpin for SensorKind
impl UnsafeUnpin for SensorKind
impl UnwindSafe for SensorKind
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