pub struct RelayContacts {
pub s1: bool,
pub s2: bool,
pub w3: bool,
pub w4: bool,
}Expand description
Logical activation signals. Field values use the FNN table’s active polarity. A hardware adapter must interpret actual wiring and terminal polarity separately.
Fields§
§s1: boolS1 requests 60 percent generation.
s2: boolS2 requests 30 percent generation.
w3: boolW3 requests zero generation.
w4: boolW4 requests consumption dimming.
Implementations§
Source§impl RelayContacts
impl RelayContacts
Sourcepub const fn decode(self) -> Result<RelayState, RelayError>
pub const fn decode(self) -> Result<RelayState, RelayError>
Decode one observation. Simultaneous active generation signals have no assigned stage in the four-stage profile.
Trait Implementations§
Source§impl Clone for RelayContacts
impl Clone for RelayContacts
impl Copy for RelayContacts
Source§impl Debug for RelayContacts
impl Debug for RelayContacts
impl Eq for RelayContacts
Source§impl PartialEq for RelayContacts
impl PartialEq for RelayContacts
impl StructuralPartialEq for RelayContacts
Auto Trait Implementations§
impl Freeze for RelayContacts
impl RefUnwindSafe for RelayContacts
impl Send for RelayContacts
impl Sync for RelayContacts
impl Unpin for RelayContacts
impl UnsafeUnpin for RelayContacts
impl UnwindSafe for RelayContacts
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