pub enum Reading {
Valid(u64),
Missing,
TimeInvalid,
MeterFault(u64),
Fatal,
}Expand description
Meter status at a scheduled registration instant, supplied by the caller.
Variants§
Valid(u64)
Timely, validated cumulative energy in Wh.
Missing
No reading arrived within the receiving window.
TimeInvalid
Clock quality or reception timing precludes using the value.
MeterFault(u64)
Timely cumulative Wh carrying a nonfatal meter fault.
Fatal
End the trace for this meter under the simulator’s stop-on-fatal policy.
Trait Implementations§
impl Copy for Reading
impl Eq for Reading
Source§impl From<Observation> for Reading
impl From<Observation> for Reading
Source§fn from(value: Observation) -> Reading
fn from(value: Observation) -> Reading
Project a slot’s quality and value for register arithmetic. The caller supplies the commissioned tariff and enforces the TAF 2 quarter-hour grid.
impl StructuralPartialEq for Reading
Auto Trait Implementations§
impl Freeze for Reading
impl RefUnwindSafe for Reading
impl Send for Reading
impl Sync for Reading
impl Unpin for Reading
impl UnsafeUnpin for Reading
impl UnwindSafe for Reading
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