pub enum ReadError {
Show 14 variants
WrongSource,
Window,
Profile,
Period,
Column,
Unit,
Time,
OutsideRange,
Value,
Status,
TooManyRows,
Slot,
Decode(Error),
Capture(Error),
}Expand description
Why a meter answer was not imported. The destination is unchanged in every case.
Variants§
WrongSource
The server ID or destination channel differs from commissioning.
Window
The requested range is empty or extends beyond the destination window.
Profile
The answer names a different profile.
Period
The registration period differs from the destination’s.
Column
The commissioned register is missing or appears more than once.
Unit
The register has another unit, no scaler, or the channel unit is unsupported.
Time
A row carries a seconds index instead of a calendar timestamp.
OutsideRange
A row’s time is outside the requested range.
Value
The register value is not an integer.
Status
The status does not fit in 32 bits.
TooManyRows
The answer has more rows than the destination holds.
Slot
The reception time lies outside the slot it should fill.
Decode(Error)
The SML encoding is malformed.
Capture(Error)
The destination rejected the slot or a conflicting replay.
Trait Implementations§
impl Copy for ReadError
impl Eq for ReadError
Source§impl Error for ReadError
impl Error for ReadError
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()