#[repr(i32)]pub enum SensorStateClass {
StateClassNone = 0,
StateClassMeasurement = 1,
StateClassTotalIncreasing = 2,
StateClassTotal = 3,
}
Expand description
==================== SENSOR ====================
Variants§
Implementations§
Source§impl SensorStateClass
impl SensorStateClass
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for SensorStateClass
impl Clone for SensorStateClass
Source§fn clone(&self) -> SensorStateClass
fn clone(&self) -> SensorStateClass
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 SensorStateClass
impl Debug for SensorStateClass
Source§impl Default for SensorStateClass
impl Default for SensorStateClass
Source§fn default() -> SensorStateClass
fn default() -> SensorStateClass
Returns the “default value” for a type. Read more
Source§impl From<SensorStateClass> for i32
impl From<SensorStateClass> for i32
Source§fn from(value: SensorStateClass) -> i32
fn from(value: SensorStateClass) -> i32
Converts to this type from the input type.
Source§impl Hash for SensorStateClass
impl Hash for SensorStateClass
Source§impl Ord for SensorStateClass
impl Ord for SensorStateClass
Source§fn cmp(&self, other: &SensorStateClass) -> Ordering
fn cmp(&self, other: &SensorStateClass) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SensorStateClass
impl PartialEq for SensorStateClass
Source§impl PartialOrd for SensorStateClass
impl PartialOrd for SensorStateClass
Source§impl TryFrom<i32> for SensorStateClass
impl TryFrom<i32> for SensorStateClass
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<SensorStateClass, UnknownEnumValue>
fn try_from(value: i32) -> Result<SensorStateClass, UnknownEnumValue>
Performs the conversion.
impl Copy for SensorStateClass
impl Eq for SensorStateClass
impl StructuralPartialEq for SensorStateClass
Auto Trait Implementations§
impl Freeze for SensorStateClass
impl RefUnwindSafe for SensorStateClass
impl Send for SensorStateClass
impl Sync for SensorStateClass
impl Unpin for SensorStateClass
impl UnwindSafe for SensorStateClass
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