pub enum LogDatum {
LogStatus(u8),
BooleanValue(bool),
RealValue(f32),
EnumValue(u32),
UnsignedValue(u64),
SignedValue(i64),
BitstringValue {
unused_bits: u8,
data: Vec<u8>,
},
NullValue,
Failure {
error_class: u32,
error_code: u32,
},
TimeChange(f32),
AnyValue(Vec<u8>),
}Expand description
The datum field of a BACnetLogRecord: a CHOICE covering all possible logged value types.
Context tags per spec (Clause 12.20.5):
[0]log-status (BACnetLogStatus, 8-bit flags)[1]boolean-value[2]real-value[3]enum-value (unsigned)[4]unsigned-value[5]signed-value[6]bitstring-value[7]null-value[8]failure (BACnetError)[9]time-change (REAL, clock-adjustment seconds)[10]any-value (raw application-tagged bytes)
Variants§
LogStatus(u8)
Log-status flags (context tag 0). Bit 0=log-disabled, bit 1=buffer-purged, bit 2=log-interrupted.
BooleanValue(bool)
Boolean value (context tag 1).
RealValue(f32)
Real (f32) value (context tag 2).
EnumValue(u32)
Enumerated value (context tag 3).
UnsignedValue(u64)
Unsigned integer value (context tag 4).
SignedValue(i64)
Signed integer value (context tag 5).
BitstringValue
Bit-string value (context tag 6).
NullValue
Null value (context tag 7).
Failure
Error (context tag 8): error class + error code.
TimeChange(f32)
Time-change: clock-adjustment amount in seconds (context tag 9).
AnyValue(Vec<u8>)
Any-value: raw application-tagged bytes for types not enumerated above (context tag 10).
Trait Implementations§
impl StructuralPartialEq for LogDatum
Auto Trait Implementations§
impl Freeze for LogDatum
impl RefUnwindSafe for LogDatum
impl Send for LogDatum
impl Sync for LogDatum
impl Unpin for LogDatum
impl UnsafeUnpin for LogDatum
impl UnwindSafe for LogDatum
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