pub struct MultiStateOutput {Show 13 fields
pub identifier: ObjectIdentifier,
pub object_name: String,
pub present_value: u32,
pub description: String,
pub device_type: 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 Output object
Fields§
§identifier: ObjectIdentifierObject identifier
object_name: StringObject name
present_value: u32Present value (state 1..N)
description: StringDescription
device_type: StringDevice type
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§
Source§impl MultiStateOutput
impl MultiStateOutput
Sourcepub fn new(instance: u32, object_name: String, number_of_states: u32) -> Self
pub fn new(instance: u32, object_name: String, number_of_states: u32) -> Self
Create a new Multi-state Output object
Sourcepub fn write_priority(&mut self, priority: u8, value: Option<u32>) -> Result<()>
pub fn write_priority(&mut self, priority: u8, value: Option<u32>) -> Result<()>
Write to priority array at specified priority level (1-16)
Sourcepub fn get_effective_priority(&self) -> Option<u8>
pub fn get_effective_priority(&self) -> Option<u8>
Get the effective priority level for current present value
Trait Implementations§
Source§impl BacnetObject for MultiStateOutput
impl BacnetObject for MultiStateOutput
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 MultiStateOutput
impl Clone for MultiStateOutput
Source§fn clone(&self) -> MultiStateOutput
fn clone(&self) -> MultiStateOutput
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 MultiStateOutput
impl RefUnwindSafe for MultiStateOutput
impl Send for MultiStateOutput
impl Sync for MultiStateOutput
impl Unpin for MultiStateOutput
impl UnsafeUnpin for MultiStateOutput
impl UnwindSafe for MultiStateOutput
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