pub enum EventState {
Valid,
Invalid,
Unknown,
}Expand description
The state reported in Producer/Consumer Identified messages.
The Event Transport Standard defines three variants of each
Identified message (MTI low bits …4, …5, …7). They let a node say
not only “I produce/consume this event” but also whether the condition
it represents currently holds. Events usually come in pairs (e.g.
“occupied”/“clear”); a producer typically reports one of the pair as
Valid and the other as Invalid, so a newly started panel can learn
the layout state by sending Identify Producer and reading the replies.
Variants§
Valid
The event is currently “true” (e.g. the block is occupied right now): the last PCER for this ID describes the present condition.
Invalid
The event is currently “false”: the condition it reports does not hold (typically because the paired event is the valid one).
Unknown
The node does not know, or the event has no persistent state (a momentary push button, for example). This is the default.
Trait Implementations§
Source§impl Clone for EventState
impl Clone for EventState
impl Copy for EventState
Source§impl Debug for EventState
impl Debug for EventState
Source§impl Default for EventState
impl Default for EventState
Source§impl<'de> Deserialize<'de> for EventState
Available on crate feature serde only.
impl<'de> Deserialize<'de> for EventState
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for EventState
Source§impl Hash for EventState
impl Hash for EventState
Source§impl PartialEq for EventState
impl PartialEq for EventState
Source§impl Serialize for EventState
Available on crate feature serde only.
impl Serialize for EventState
serde only.