#[non_exhaustive]pub enum MeterReadError {
Contract(Error),
Principal,
ServerIdentity,
Read(ReadError),
Definition {
outcome: Outcome,
attribute: ReadAttribute,
status: u32,
},
Units {
outcome: Outcome,
stage: UnitStage,
status: u32,
},
MissingValue,
InvalidTimestamp {
clock: &'static str,
},
Evidence(Error),
}Expand description
A reviewed meter could not be verified or its DataValue could not be recorded exactly.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Contract(Error)
The supplied contract is outside the supported single-register profile.
Principal
The reviewed user differs from the authenticated session user.
ServerIdentity
The contract selects a different server from the pinned client.
Read(ReadError)
A service, session, node resolution or attribute decoding failed.
Definition
Required metadata was missing, different, or lacked an unqualified Good status.
Fields
attribute: ReadAttributeThe attribute that failed the gate.
Units
The verified standard property did not confirm watt-hours with status zero.
Fields
MissingValue
A Good-severity Value response omitted the register payload.
InvalidTimestamp
A clock cannot be represented in the meter document without losing information.
Evidence(Error)
The resulting document failed the commissioning evidence validator or size limit.
Trait Implementations§
Source§impl Debug for MeterReadError
impl Debug for MeterReadError
Source§impl Display for MeterReadError
impl Display for MeterReadError
Source§impl Error for MeterReadError
impl Error for MeterReadError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()