Struct ade791x::Measurement

source ·
pub struct Measurement {
    pub current: f32,
    pub voltage: f32,
    pub aux: MeasurementAux,
}
Expand description

Contains the converted metrics coming from the ADC.

Fields§

§current: f32

Current value in Amperes.

§voltage: f32

Voltage value in Volts.

§aux: MeasurementAux

Auxiliary metric value as a MeasurementAux. This field can be a second voltage measurement in Volts for the ADE7913 or a temperature measurement in °C for the ADE7912 or the ADE7913, if temp_en = true in Config.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.