pub struct ModbusSlaveReadInputRegistersRequestEvent {
pub request_id: u8,
pub starting_address: u32,
pub count: u16,
}
Fields§
§request_id: u8
§starting_address: u32
§count: u16
Trait Implementations§
source§impl Clone for ModbusSlaveReadInputRegistersRequestEvent
impl Clone for ModbusSlaveReadInputRegistersRequestEvent
source§fn clone(&self) -> ModbusSlaveReadInputRegistersRequestEvent
fn clone(&self) -> ModbusSlaveReadInputRegistersRequestEvent
Returns a copy 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 Default for ModbusSlaveReadInputRegistersRequestEvent
impl Default for ModbusSlaveReadInputRegistersRequestEvent
source§fn default() -> ModbusSlaveReadInputRegistersRequestEvent
fn default() -> ModbusSlaveReadInputRegistersRequestEvent
Returns the “default value” for a type. Read more
source§impl FromByteSlice for ModbusSlaveReadInputRegistersRequestEvent
impl FromByteSlice for ModbusSlaveReadInputRegistersRequestEvent
source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
source§fn from_le_byte_slice(bytes: &[u8]) -> ModbusSlaveReadInputRegistersRequestEvent
fn from_le_byte_slice(bytes: &[u8]) -> ModbusSlaveReadInputRegistersRequestEvent
Deserialize the implementing type from a byte slice.
source§impl PartialEq for ModbusSlaveReadInputRegistersRequestEvent
impl PartialEq for ModbusSlaveReadInputRegistersRequestEvent
source§fn eq(&self, other: &ModbusSlaveReadInputRegistersRequestEvent) -> bool
fn eq(&self, other: &ModbusSlaveReadInputRegistersRequestEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ModbusSlaveReadInputRegistersRequestEvent
impl Eq for ModbusSlaveReadInputRegistersRequestEvent
impl StructuralPartialEq for ModbusSlaveReadInputRegistersRequestEvent
Auto Trait Implementations§
impl RefUnwindSafe for ModbusSlaveReadInputRegistersRequestEvent
impl Send for ModbusSlaveReadInputRegistersRequestEvent
impl Sync for ModbusSlaveReadInputRegistersRequestEvent
impl Unpin for ModbusSlaveReadInputRegistersRequestEvent
impl UnwindSafe for ModbusSlaveReadInputRegistersRequestEvent
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