pub struct WriteSingleCoilResponse {
pub address: u16,
pub value: bool,
}Expand description
FC05 Write Single Coil response echoing the written address and value.
Fields§
§address: u16Address of the coil that was written.
value: boolValue written to the coil (true = ON, false = OFF).
Implementations§
Trait Implementations§
Source§impl Clone for WriteSingleCoilResponse
impl Clone for WriteSingleCoilResponse
Source§fn clone(&self) -> WriteSingleCoilResponse
fn clone(&self) -> WriteSingleCoilResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WriteSingleCoilResponse
impl Debug for WriteSingleCoilResponse
Source§impl PartialEq for WriteSingleCoilResponse
impl PartialEq for WriteSingleCoilResponse
impl Copy for WriteSingleCoilResponse
impl Eq for WriteSingleCoilResponse
impl StructuralPartialEq for WriteSingleCoilResponse
Auto Trait Implementations§
impl Freeze for WriteSingleCoilResponse
impl RefUnwindSafe for WriteSingleCoilResponse
impl Send for WriteSingleCoilResponse
impl Sync for WriteSingleCoilResponse
impl Unpin for WriteSingleCoilResponse
impl UnsafeUnpin for WriteSingleCoilResponse
impl UnwindSafe for WriteSingleCoilResponse
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