pub struct IOState {
pub di1: bool,
pub di2: bool,
pub di3: bool,
pub di4: bool,
pub do1: bool,
pub do2: bool,
pub do3: bool,
pub do4: bool,
}Expand description
Represents the state of digital inputs (DI) and digital outputs (DO).
Fields§
§di1: boolState of digital input 1.
di2: boolState of digital input 2.
di3: boolState of digital input 3.
di4: boolState of digital input 4.
do1: boolState of digital output 1.
do2: boolState of digital output 2.
do3: boolState of digital output 3.
do4: boolState of digital output 4.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IOState
impl<'de> Deserialize<'de> for IOState
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IOState
impl RefUnwindSafe for IOState
impl Send for IOState
impl Sync for IOState
impl Unpin for IOState
impl UnsafeUnpin for IOState
impl UnwindSafe for IOState
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