#[repr(u8)]pub enum MeasurementType {
Show 17 variants
Unspecified = 0,
Voltage = 1,
Activecurrent = 2,
Reactivecurrent = 3,
Apparentcurrent = 4,
Activepower = 5,
Reactivepower = 6,
Apparentpower = 7,
Rmsvoltage = 8,
Rmscurrent = 9,
Rmspower = 10,
Frequency = 11,
Powerfactor = 12,
Neutralcurrent = 13,
Electricalenergy = 14,
Reactiveenergy = 15,
Apparentenergy = 16,
}Variants§
Unspecified = 0
Voltage = 1
Voltage in millivolts (mV)
Activecurrent = 2
Active current in milliamps (mA)
Reactivecurrent = 3
Reactive current in milliamps (mA)
Apparentcurrent = 4
Apparent current in milliamps (mA)
Activepower = 5
Active power in milliwatts (mW)
Reactivepower = 6
Reactive power in millivolt-amps reactive (mVAR)
Apparentpower = 7
Apparent power in millivolt-amps (mVA)
Rmsvoltage = 8
Root mean squared voltage in millivolts (mV)
Rmscurrent = 9
Root mean squared current in milliamps (mA)
Rmspower = 10
Root mean squared power in milliwatts (mW)
Frequency = 11
AC frequency in millihertz (mHz)
Powerfactor = 12
Power Factor ratio in +/- 1/100ths of a percent.
Neutralcurrent = 13
AC neutral current in milliamps (mA)
Electricalenergy = 14
Electrical energy in milliwatt-hours (mWh)
Reactiveenergy = 15
Reactive power in millivolt-amp-hours reactive (mVARh)
Apparentenergy = 16
Apparent power in millivolt-amp-hours (mVAh)
Implementations§
Trait Implementations§
Source§impl Clone for MeasurementType
impl Clone for MeasurementType
Source§fn clone(&self) -> MeasurementType
fn clone(&self) -> MeasurementType
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 MeasurementType
impl Debug for MeasurementType
Source§impl<'de> Deserialize<'de> for MeasurementType
impl<'de> Deserialize<'de> for MeasurementType
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 From<MeasurementType> for u8
impl From<MeasurementType> for u8
Source§fn from(val: MeasurementType) -> Self
fn from(val: MeasurementType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MeasurementType
impl PartialEq for MeasurementType
Source§impl Serialize for MeasurementType
impl Serialize for MeasurementType
impl Copy for MeasurementType
impl Eq for MeasurementType
impl StructuralPartialEq for MeasurementType
Auto Trait Implementations§
impl Freeze for MeasurementType
impl RefUnwindSafe for MeasurementType
impl Send for MeasurementType
impl Sync for MeasurementType
impl Unpin for MeasurementType
impl UnwindSafe for MeasurementType
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