pub enum MemberDatatype {
Show 14 variants
Unknown,
Boolean,
Unsigned,
Integer,
Real,
Double,
OctetString,
CharacterString,
BitString,
Enumerated,
Date,
Time,
ObjectIdentifier,
LightingCommand,
}Expand description
The datatype of a Channel member’s property, as Table 12-63’s columns name them.
Variants§
Unknown
Not known: any value but a lighting command passes on unchanged.
Boolean
BOOLEAN.
Unsigned
Unsigned.
Integer
INTEGER.
Real
REAL.
Double
Double.
OctetString
OCTET STRING.
CharacterString
CharacterString.
BitString
BIT STRING.
Enumerated
ENUMERATED.
Date
Date.
Time
Time.
ObjectIdentifier
BACnetObjectIdentifier.
LightingCommand
BACnetLightingCommand.
Implementations§
Source§impl MemberDatatype
impl MemberDatatype
Sourcepub fn of(property: PropertyIdentifier, current: Option<&PropertyValue>) -> Self
pub fn of(property: PropertyIdentifier, current: Option<&PropertyValue>) -> Self
The datatype of member property property, whose value is current
(None when it can’t be read).
Lighting_Command is a BACnetLightingCommand whatever form the object
keeps it in. Any other property takes the datatype of the primitive
it holds; NULL, constructed values and unreadable properties are
MemberDatatype::Unknown.
Trait Implementations§
Source§impl Clone for MemberDatatype
impl Clone for MemberDatatype
impl Copy for MemberDatatype
Source§impl Debug for MemberDatatype
impl Debug for MemberDatatype
impl Eq for MemberDatatype
Source§impl PartialEq for MemberDatatype
impl PartialEq for MemberDatatype
impl StructuralPartialEq for MemberDatatype
Auto Trait Implementations§
impl Freeze for MemberDatatype
impl RefUnwindSafe for MemberDatatype
impl Send for MemberDatatype
impl Sync for MemberDatatype
impl Unpin for MemberDatatype
impl UnsafeUnpin for MemberDatatype
impl UnwindSafe for MemberDatatype
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