pub struct CoilBlock {
pub address: u16,
pub count: u16,
pub initial: Vec<bool>,
}Expand description
A contiguous block of coils/discrete inputs.
Fields§
§address: u16Starting address.
count: u16Number of coils.
initial: Vec<bool>Initial values (padded with false if shorter).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CoilBlock
impl<'de> Deserialize<'de> for CoilBlock
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 CoilBlock
impl RefUnwindSafe for CoilBlock
impl Send for CoilBlock
impl Sync for CoilBlock
impl Unpin for CoilBlock
impl UnsafeUnpin for CoilBlock
impl UnwindSafe for CoilBlock
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