pub struct MeterReading { /* private fields */ }Expand description
One scope-checked DataValue. Serialize this to retain its independent clocks, raw UInt32 status, and the original integer or floating-point bit pattern on Good severity.
Implementations§
Source§impl MeterReading
impl MeterReading
Sourcepub fn compact_line_bytes(&self) -> usize
pub fn compact_line_bytes(&self) -> usize
Cached byte size of this compact UTF-8 JSON reading plus one LF.
This is the exact input charge for MeterProjector::push.
Sourcepub fn status(&self) -> u32
pub fn status(&self) -> u32
Full OPC UA Value read status, including subcode and information bits.
Sourcepub fn value(&self) -> Option<u64>
pub fn value(&self) -> Option<u64>
Original UInt32 or UInt64 register value when the wire status has Good severity.
Sourcepub fn value_bits(&self) -> Option<u32>
pub fn value_bits(&self) -> Option<u32>
Original binary32 bits for a Float register when the wire status has Good severity.
Sourcepub fn double_bits(&self) -> Option<u64>
pub fn double_bits(&self) -> Option<u64>
Original binary64 bits for a Double register when the wire status has Good severity.
Sourcepub fn source_at(&self) -> Option<OffsetDateTime>
pub fn source_at(&self) -> Option<OffsetDateTime>
Original source clock, normalized to UTC at its supplied precision.
Sourcepub fn server_at(&self) -> Option<OffsetDateTime>
pub fn server_at(&self) -> Option<OffsetDateTime>
Original server clock when the read included it.
Sourcepub fn received_at(&self) -> OffsetDateTime
pub fn received_at(&self) -> OffsetDateTime
UTC receipt time measured by the reader.