pub struct BinaryInput {Show 15 fields
pub identifier: ObjectIdentifier,
pub object_name: String,
pub present_value: BinaryPV,
pub description: String,
pub device_type: String,
pub status_flags: u8,
pub event_state: EventState,
pub reliability: Reliability,
pub out_of_service: bool,
pub polarity: Polarity,
pub inactive_text: String,
pub active_text: String,
pub change_of_state_time: Option<Time>,
pub change_of_state_count: u32,
pub time_of_state_count_reset: Option<Time>,
}Expand description
Binary Input object
Fields§
§identifier: ObjectIdentifierObject identifier
object_name: StringObject name
present_value: BinaryPVPresent value
description: StringDescription
device_type: StringDevice type
status_flags: u8Status flags (4 bits: in_alarm, fault, overridden, out_of_service)
event_state: EventStateEvent state
reliability: ReliabilityReliability
out_of_service: boolOut of service
polarity: PolarityPolarity
inactive_text: StringInactive text
active_text: StringActive text
change_of_state_time: Option<Time>Change of value time
change_of_state_count: u32Change of state count
time_of_state_count_reset: Option<Time>Time of state count reset
Implementations§
Source§impl BinaryInput
impl BinaryInput
Sourcepub fn set_present_value(&mut self, value: BinaryPV)
pub fn set_present_value(&mut self, value: BinaryPV)
Set the present value and update change of state
Trait Implementations§
Source§impl BacnetObject for BinaryInput
impl BacnetObject for BinaryInput
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 BinaryInput
impl Clone for BinaryInput
Source§fn clone(&self) -> BinaryInput
fn clone(&self) -> BinaryInput
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 BinaryInput
impl RefUnwindSafe for BinaryInput
impl Send for BinaryInput
impl Sync for BinaryInput
impl Unpin for BinaryInput
impl UnsafeUnpin for BinaryInput
impl UnwindSafe for BinaryInput
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