pub struct CommandFailureDetector {
pub notification_class: u32,
pub notify_type: u32,
pub event_enable: u8,
pub time_delay: u32,
pub time_delay_normal: Option<u32>,
pub event_state: EventState,
pub acked_transitions: u8,
pub pending: Option<PendingTransition>,
pub fault_reliability: Option<u32>,
}Expand description
COMMAND_FAILURE event detector for commandable output objects (BO, MSO).
Transitions to OFFNORMAL when present_value differs from feedback_value. Returns to NORMAL when they match.
Time_Delay is honored via the split Self::probe / Self::tick
entry points; see OutOfRangeDetector for the delay contract.
Fields§
§notification_class: u32§notify_type: u32§event_enable: u8§time_delay: u32§time_delay_normal: Option<u32>Time_Delay_Normal (property 356): the Clause 13.3.4 pTimeDelayNormal
parameter — seconds that Normal conditions must persist before a
NORMAL event state is indicated. None is the not-configured case
and takes on time_delay: “If no value is available for this
parameter, then it takes on the value of the pTimeDelay parameter.”
event_state: EventState§acked_transitions: u8§pending: Option<PendingTransition>Pending delayed transition, or None when no delay is in progress.
fault_reliability: Option<u32>Reliability value in force at the last entry to FAULT; None outside FAULT.
Implementations§
Source§impl CommandFailureDetector
impl CommandFailureDetector
Sourcepub const ALGORITHM: EventType = EventType::COMMAND_FAILURE
pub const ALGORITHM: EventType = EventType::COMMAND_FAILURE
BACnet Event Type corresponding to this detector’s event algorithm.
Sourcepub fn evaluate(
&mut self,
present_value: u32,
feedback_value: u32,
reliability: u32,
) -> Option<TransitionOutcome>
pub fn evaluate( &mut self, present_value: u32, feedback_value: u32, reliability: u32, ) -> Option<TransitionOutcome>
Per-write entry point; see OutOfRangeDetector::evaluate.
Trait Implementations§
Source§impl Clone for CommandFailureDetector
impl Clone for CommandFailureDetector
Source§fn clone(&self) -> CommandFailureDetector
fn clone(&self) -> CommandFailureDetector
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more