pub struct BinaryValue {
pub identifier: ObjectIdentifier,
pub object_name: String,
pub present_value: BinaryPV,
pub description: String,
pub status_flags: u8,
pub event_state: EventState,
pub reliability: Reliability,
pub out_of_service: bool,
pub inactive_text: String,
pub active_text: String,
pub priority_array: [Option<BinaryPV>; 16],
pub relinquish_default: BinaryPV,
}Expand description
Binary Value object
Fields§
§identifier: ObjectIdentifierObject identifier
object_name: StringObject name
present_value: BinaryPVPresent value
description: StringDescription
status_flags: u8Status flags
event_state: EventStateEvent state
reliability: ReliabilityReliability
out_of_service: boolOut of service
inactive_text: StringInactive text
active_text: StringActive text
priority_array: [Option<BinaryPV>; 16]Priority array (16 levels)
relinquish_default: BinaryPVRelinquish default
Implementations§
Trait Implementations§
Source§impl BacnetObject for BinaryValue
impl BacnetObject for BinaryValue
Source§fn identifier(&self) -> ObjectIdentifier
fn identifier(&self) -> ObjectIdentifier
Get the object identifier
Source§fn get_property(&self, property: PropertyIdentifier) -> Result<PropertyValue>
fn get_property(&self, property: PropertyIdentifier) -> Result<PropertyValue>
Get a property value
Source§fn set_property(
&mut self,
property: PropertyIdentifier,
value: PropertyValue,
) -> Result<()>
fn set_property( &mut self, property: PropertyIdentifier, value: PropertyValue, ) -> Result<()>
Set a property value
Source§fn is_property_writable(&self, property: PropertyIdentifier) -> bool
fn is_property_writable(&self, property: PropertyIdentifier) -> bool
Check if property is writable
Source§fn property_list(&self) -> Vec<PropertyIdentifier>
fn property_list(&self) -> Vec<PropertyIdentifier>
Get list of all properties
Source§impl Clone for BinaryValue
impl Clone for BinaryValue
Source§fn clone(&self) -> BinaryValue
fn clone(&self) -> BinaryValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BinaryValue
impl RefUnwindSafe for BinaryValue
impl Send for BinaryValue
impl Sync for BinaryValue
impl Unpin for BinaryValue
impl UnsafeUnpin for BinaryValue
impl UnwindSafe for BinaryValue
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