#[non_exhaustive]pub enum CharValue {
Bool(bool),
Int(i64),
Uint(u64),
Float(f64),
Str(String),
Bytes(Vec<u8>),
}Expand description
A decoded characteristic value, collapsed across the integer widths.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bool(bool)
A boolean.
Int(i64)
A signed integer (int format).
Uint(u64)
An unsigned integer (uint8/uint16/uint32/uint64).
Float(f64)
A float (float).
Str(String)
A UTF-8 string (string).
Bytes(Vec<u8>)
Opaque bytes (tlv8 / data), base64 on the wire.
Implementations§
Trait Implementations§
impl StructuralPartialEq for CharValue
Auto Trait Implementations§
impl Freeze for CharValue
impl RefUnwindSafe for CharValue
impl Send for CharValue
impl Sync for CharValue
impl Unpin for CharValue
impl UnsafeUnpin for CharValue
impl UnwindSafe for CharValue
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