pub struct MultiStateValue {
pub identifier: ObjectIdentifier,
pub object_name: String,
pub present_value: u32,
pub description: String,
pub status_flags: u8,
pub event_state: EventState,
pub reliability: Reliability,
pub out_of_service: bool,
pub number_of_states: u32,
pub state_text: Vec<String>,
pub priority_array: [Option<u32>; 16],
pub relinquish_default: u32,
}Expand description
Multi-state Value object
Fields§
§identifier: ObjectIdentifierObject identifier
object_name: StringObject name
present_value: u32Present value (state 1..N)
description: StringDescription
status_flags: u8Status flags
event_state: EventStateEvent state
reliability: ReliabilityReliability
out_of_service: boolOut of service
number_of_states: u32Number of states
state_text: Vec<String>State text array
priority_array: [Option<u32>; 16]Priority array (16 levels)
relinquish_default: u32Relinquish default
Implementations§
Trait Implementations§
Source§impl BacnetObject for MultiStateValue
impl BacnetObject for MultiStateValue
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 MultiStateValue
impl Clone for MultiStateValue
Source§fn clone(&self) -> MultiStateValue
fn clone(&self) -> MultiStateValue
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 MultiStateValue
impl RefUnwindSafe for MultiStateValue
impl Send for MultiStateValue
impl Sync for MultiStateValue
impl Unpin for MultiStateValue
impl UnsafeUnpin for MultiStateValue
impl UnwindSafe for MultiStateValue
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