pub struct WriteSingleRegisterResponse {
pub address: Address,
pub value: u16,
}Expand description
Response to a Write Single Register request (FC 0x06).
This is an echo of the request.
Fields§
§address: AddressAddress of the register that was written.
value: u16Value that was written to the register.
Implementations§
Trait Implementations§
Source§impl Debug for WriteSingleRegisterResponse
impl Debug for WriteSingleRegisterResponse
Source§impl Encode for WriteSingleRegisterResponse
impl Encode for WriteSingleRegisterResponse
Source§fn encode_into(&self, buf: &mut [u8]) -> Result<usize, EncodeError>
fn encode_into(&self, buf: &mut [u8]) -> Result<usize, EncodeError>
Write the full PDU (function code + data) into
buf. Read moreSource§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Total encoded length in bytes (including the function code byte).
Auto Trait Implementations§
impl Freeze for WriteSingleRegisterResponse
impl RefUnwindSafe for WriteSingleRegisterResponse
impl Send for WriteSingleRegisterResponse
impl Sync for WriteSingleRegisterResponse
impl Unpin for WriteSingleRegisterResponse
impl UnsafeUnpin for WriteSingleRegisterResponse
impl UnwindSafe for WriteSingleRegisterResponse
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