pub enum ClientDataValue {
Show 14 variants
Null,
Boolean(bool),
Unsigned(u32),
Signed(i32),
Real(f32),
Double(f64),
OctetString(Vec<u8>),
CharacterString(String),
BitString {
unused_bits: u8,
data: Vec<u8>,
},
Enumerated(u32),
Date(Date),
Time(Time),
ObjectId(ObjectId),
Constructed {
tag_num: u8,
values: Vec<ClientDataValue>,
},
}Expand description
An owned BACnet application-data value returned by client read operations.
This is the client-side counterpart to the zero-copy DataValue<'_> used internally.
All byte-slice and string fields are allocated as owned Vec/String so the value
can outlive the receive buffer.
Variants§
Null
BACnet Null — no value present.
Boolean(bool)
BACnet Boolean.
Unsigned(u32)
BACnet Unsigned Integer (32-bit).
Signed(i32)
BACnet Signed Integer (32-bit).
Real(f32)
BACnet Real (IEEE 754 single-precision float).
Double(f64)
BACnet Double (IEEE 754 double-precision float).
OctetString(Vec<u8>)
BACnet Octet String — arbitrary raw bytes.
CharacterString(String)
BACnet Character String — UTF-8 text.
BitString
BACnet Bit String.
unused_bits is the number of padding bits in the last byte of data that are not
part of the logical bit string (0–7).
Enumerated(u32)
BACnet Enumerated value — the raw numeric discriminant.
Date(Date)
BACnet Date.
Time(Time)
BACnet Time.
ObjectId(ObjectId)
BACnet ObjectIdentifier — encodes both the object type and instance number.
Constructed
A constructed (complex) value containing a sequence of child values.
tag_num is the context tag number of the opening/closing tag pair.
Trait Implementations§
Source§impl Clone for ClientDataValue
impl Clone for ClientDataValue
Source§fn clone(&self) -> ClientDataValue
fn clone(&self) -> ClientDataValue
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more