SensorEvent

Enum SensorEvent 

Source
pub enum SensorEvent {
Show 17 variants ReadingAboveLowerFatalThreshold(String, f64, String, f64), ReadingAboveUpperFatalThreshold(String, f64, String, f64), ReadingCritical(String, f64, String), SensorFailure(String), ReadingBelowLowerCautionThreshold(String, f64, String, f64), ReadingBelowLowerFatalThreshold(String, f64, String, f64), ReadingBelowUpperCriticalThreshold(String, f64, String, f64), ReadingNoLongerCritical(String, f64, String), ReadingBelowLowerCriticalThreshold(String, f64, String, f64), ReadingWarning(String, f64, String), ReadingAboveUpperCautionThreshold(String, f64, String, f64), ReadingBelowUpperFatalThreshold(String, f64, String, f64), SensorRestored(String), ReadingAboveUpperCriticalThreshold(String, f64, String, f64), InvalidSensorReading(String), ReadingAboveLowerCriticalThreshold(String, f64, String, f64), SensorReadingNormalRange(String, f64, String),
}
Expand description

This registry defines messages used for general events related to Sensor resources.

Variants§

§

ReadingAboveLowerFatalThreshold(String, f64, String, f64)

This message shall be used to indicate that the value of the Reading in a Sensor resource, previously below the threshold, is now above the value of the Reading property within the LowerFatal property. However, the value of the Reading property is still below at least one Reading property of another lower threshold and is not within the normal operating range.

Tuple Fields

§0: String

This argument shall contain a string that identifies or describes the Sensor resource.

§1: f64

This argument shall contain a number that equals the value of the Reading property of the Sensor resource.

§2: String

This argument shall contain a string that equals the value of the ReadingUnits property of the Sensor resource. Unitless readings should use count.

§3: f64

This argument shall contain a number that equals the value of the Reading property within the LowerFatal property of the Sensor resource.

§

ReadingAboveUpperFatalThreshold(String, f64, String, f64)

This message shall be used to indicate that the value of the Reading property in a Sensor resource is above the value of the Reading property within the UpperFatal property.

Tuple Fields

§0: String

This argument shall contain a string that identifies or describes the Sensor resource.

§1: f64

This argument shall contain a number that equals the value of the Reading property of the Sensor resource.

§2: String

This argument shall contain a string that equals the value of the ReadingUnits property of the Sensor resource. Unitless readings should use count.

§3: f64

This argument shall contain a number that equals the value of the Reading property within the UpperFatal property of the Sensor resource.

§

ReadingCritical(String, f64, String)

This message shall be used to indicate that the value of the Reading property in a Sensor resource exceeds the value of an internal critical level. This message shall be used for Sensor resources that do not contain readable critical threshold values, such as boolean trip points or similiar hardware mechanisms. This message shall not be used if the Reading property within a corresponding critical threshold is available.

Tuple Fields

§0: String

This argument shall contain a string that identifies or describes the Sensor resource.

§1: f64

This argument shall contain a number that equals the value of the Reading property of the Sensor resource.

§2: String

This argument shall contain a string that equals the value of the ReadingUnits property of the Sensor resource. Unitless readings should use count.

§

SensorFailure(String)

This message shall be used to indicate that the service is unable to communicate with a sensor or has otherwise detected a fault condition with the sensor.

Tuple Fields

§0: String

This argument shall contain a string that identifies or describes the Sensor resource.

§

ReadingBelowLowerCautionThreshold(String, f64, String, f64)

This message shall be used to indicate that the value of the Reading property in a Sensor resource is below the value of the Reading property within the LowerCaution or LowerCautionUser properties.

Tuple Fields

§0: String

This argument shall contain a string that identifies or describes the Sensor resource.

§1: f64

This argument shall contain a number that equals the value of the Reading property of the Sensor resource.

§2: String

This argument shall contain a string that equals the value of the ReadingUnits property of the Sensor resource. Unitless readings should use count.

§3: f64

This argument shall contain a number that equals the value of the Reading property within the LowerCaution or LowerCautionUser properties of the Sensor resource.

§

ReadingBelowLowerFatalThreshold(String, f64, String, f64)

This message shall be used to indicate that the value of the Reading property in a Sensor resource is below the value of the Reading property within the LowerFatal property.

Tuple Fields

§0: String

This argument shall contain a string that identifies or describes the Sensor resource.

§1: f64

This argument shall contain a number that equals the value of the Reading property of the Sensor resource.

§2: String

This argument shall contain a string that equals the value of the ReadingUnits property of the Sensor resource. Unitless readings should use count.

§3: f64

This argument shall contain a number that equals the value of the Reading property within the LowerFatal property of the Sensor resource.

§

ReadingBelowUpperCriticalThreshold(String, f64, String, f64)

This message shall be used to indicate that the value of the Reading in a Sensor resource, previously above the threshold, is now below the value of the Reading property within the UpperCritical or UpperCriticalUser properties. However, the value of the Reading property is still above at least one Reading property of another upper threshold and is not within the normal operating range.

Tuple Fields

§0: String

This argument shall contain a string that identifies or describes the Sensor resource.

§1: f64

This argument shall contain a number that equals the value of the Reading property of the Sensor resource.

§2: String

This argument shall contain a string that equals the value of the ReadingUnits property of the Sensor resource. Unitless readings should use count.

§3: f64

This argument shall contain a number that equals the value of the Reading property within the UpperCritical or UpperCriticalUser properties of the Sensor resource.

§

ReadingNoLongerCritical(String, f64, String)

This message shall be used to indicate that the value of the Reading property in a Sensor resource no longer exceeds the value of an internal critical level, but the value still exceeds an internal warning level. This message shall be used for Sensor resources that do not contain readable critical threshold values, such as boolean trip points or similiar hardware mechanisms. This message shall not be used if the Reading property within a corresponding critical threshold is available.

Tuple Fields

§0: String

This argument shall contain a string that identifies or describes the Sensor resource.

§1: f64

This argument shall contain a number that equals the value of the Reading property of the Sensor resource.

§2: String

This argument shall contain a string that equals the value of the ReadingUnits property of the Sensor resource. Unitless readings should use count.

§

ReadingBelowLowerCriticalThreshold(String, f64, String, f64)

This message shall be used to indicate that the value of the Reading property in a Sensor resource is below the value of the Reading property within the LowerCritical or LowerCriticalUser properties.

Tuple Fields

§0: String

This argument shall contain a string that identifies or describes the Sensor resource.

§1: f64

This argument shall contain a number that equals the value of the Reading property of the Sensor resource.

§2: String

This argument shall contain a string that equals the value of the ReadingUnits property of the Sensor resource. Unitless readings should use count.

§3: f64

This argument shall contain a number that equals the value of the Reading property within the LowerCritical or LowerCriticalUser properties of the Sensor resource.

§

ReadingWarning(String, f64, String)

This message shall be used to indicate that the value of the Reading property in a Sensor resource exceeds the value of an internal warning level. This message shall be used for Sensor resources that do not contain readable caution threshold values, such as boolean trip points or similiar hardware mechanisms. This message shall not be used if the Reading property within a corresponding caution threshold is available.

Tuple Fields

§0: String

This argument shall contain a string that identifies or describes the Sensor resource.

§1: f64

This argument shall contain a number that equals the value of the Reading property of the Sensor resource.

§2: String

This argument shall contain a string that equals the value of the ReadingUnits property of the Sensor resource. Unitless readings should use count.

§

ReadingAboveUpperCautionThreshold(String, f64, String, f64)

This message shall be used to indicate that the value of the Reading property in a Sensor resource is above the value of the Reading property within the UpperCaution or UpperCautionUser properties.

Tuple Fields

§0: String

This argument shall contain a string that identifies or describes the Sensor resource.

§1: f64

This argument shall contain a number that equals the value of the Reading property of the Sensor resource.

§2: String

This argument shall contain a string that equals the value of the ReadingUnits property of the Sensor resource. Unitless readings should use count.

§3: f64

This argument shall contain a number that equals the value of the Reading property within the UpperCaution or UpperCautionUser properties of the Sensor resource.

§

ReadingBelowUpperFatalThreshold(String, f64, String, f64)

This message shall be used to indicate that the value of the Reading in a Sensor resource, previously above the threshold, is now below the value of the Reading property within the UpperFatal property. However, the value of the Reading property is still above at least one Reading property of another upper threshold and is not within the normal operating range.

Tuple Fields

§0: String

This argument shall contain a string that identifies or describes the Sensor resource.

§1: f64

This argument shall contain a number that equals the value of the Reading property of the Sensor resource.

§2: String

This argument shall contain a string that equals the value of the ReadingUnits property of the Sensor resource. Unitless readings should use count.

§3: f64

This argument shall contain a number that equals the value of the Reading property within the UpperFatal property of the Sensor resource.

§

SensorRestored(String)

This message shall be used to indicate that the service is able to communicate with a sensor that had previously failed, or the sensor has been repaired or replaced.

Tuple Fields

§0: String

This argument shall contain a string that identifies or describes the Sensor resource.

§

ReadingAboveUpperCriticalThreshold(String, f64, String, f64)

This message shall be used to indicate that the value of the Reading property in a Sensor resource is above the value of the Reading property within the UpperCritical or UpperCriticalUser properties.

Tuple Fields

§0: String

This argument shall contain a string that identifies or describes the Sensor resource.

§1: f64

This argument shall contain a number that equals the value of the Reading property of the Sensor resource.

§2: String

This argument shall contain a string that equals the value of the ReadingUnits property of the Sensor resource. Unitless readings should use count.

§3: f64

This argument shall contain a number that equals the value of the Reading property within the UpperCritical or UpperCriticalUser properties of the Sensor resource.

§

InvalidSensorReading(String)

This message shall be used to indicate that the service received invalid data while attempting to update the value of the Reading property in a Sensor resource.

Tuple Fields

§0: String

This argument shall contain a string that identifies or describes the Sensor resource.

§

ReadingAboveLowerCriticalThreshold(String, f64, String, f64)

This message shall be used to indicate that the value of the Reading in a Sensor resource, previously below the threshold, is now above the value of the Reading property within the LowerCritical or LowerCriticalUser properties. However, the value of the Reading property is still below at least one Reading property of another lower threshold and is not within the normal operating range.

Tuple Fields

§0: String

This argument shall contain a string that identifies or describes the Sensor resource.

§1: f64

This argument shall contain a number that equals the value of the Reading property of the Sensor resource.

§2: String

This argument shall contain a string that equals the value of the ReadingUnits property of the Sensor resource. Unitless readings should use count.

§3: f64

This argument shall contain a number that equals the value of the Reading property within the LowerCritical or LowerCriticalUser properties of the Sensor resource.

§

SensorReadingNormalRange(String, f64, String)

This message shall be used to indicate that the value of the Reading property within a Sensor resource has returned to its normal operating range.

Tuple Fields

§0: String

This argument shall contain a string that identifies or describes the Sensor resource.

§1: f64

This argument shall contain a number that equals the value of the Reading property of the Sensor resource.

§2: String

This argument shall contain a string that equals the value of the ReadingUnits property of the Sensor resource. Unitless readings should use count.

Trait Implementations§

Source§

impl Clone for SensorEvent

Source§

fn clone(&self) -> SensorEvent

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SensorEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Into<Message> for SensorEvent

Source§

fn into(self) -> Message

Converts this type into the (usually inferred) input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.