pub enum LogValue {
BooleanValue(bool),
RealValue(f32),
EnumValue(u64),
UnsignedValue(u64),
SignedValue(i64),
BitstringValue {
unused_bits: u8,
data: Vec<u8>,
},
NullValue,
Failure {
error_class: u32,
error_code: u32,
},
AnyValue(Vec<u8>),
}Expand description
One sampled value, or the error that stopped the sample, in a Trend Log Multiple record (Clause 12.30.19).
These are the per-member alternatives of Clause 21’s BACnetLogData. On the
wire they take context tags 0 to 8 in declaration order; the encoding crate
owns that numbering, which differs from LogDatum’s.
Variants§
BooleanValue(bool)
A BOOLEAN value.
RealValue(f32)
A REAL value.
EnumValue(u64)
An ENUMERATED value. A logging device may hold these to 32 bits but need not, so a decoded record keeps up to 64.
UnsignedValue(u64)
An Unsigned value, up to 64 bits.
SignedValue(i64)
An INTEGER value, up to 64 bits.
BitstringValue
A BIT STRING value.
Fields
NullValue
A NULL value.
Failure
The error that kept this member from being logged.
AnyValue(Vec<u8>)
A value of any other datatype, as the tagged encoding a property read carries for it: one or more complete values, context tags balanced.
Trait Implementations§
impl StructuralPartialEq for LogValue
Auto Trait Implementations§
impl Freeze for LogValue
impl RefUnwindSafe for LogValue
impl Send for LogValue
impl Sync for LogValue
impl Unpin for LogValue
impl UnsafeUnpin for LogValue
impl UnwindSafe for LogValue
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