pub struct ModbusSlaveReadDiscreteInputsRequestEvent {
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 ModbusSlaveReadDiscreteInputsRequestEvent
impl Clone for ModbusSlaveReadDiscreteInputsRequestEvent
Source§fn clone(&self) -> ModbusSlaveReadDiscreteInputsRequestEvent
fn clone(&self) -> ModbusSlaveReadDiscreteInputsRequestEvent
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 ModbusSlaveReadDiscreteInputsRequestEvent
impl Default for ModbusSlaveReadDiscreteInputsRequestEvent
Source§fn default() -> ModbusSlaveReadDiscreteInputsRequestEvent
fn default() -> ModbusSlaveReadDiscreteInputsRequestEvent
Returns the “default value” for a type. Read more
Source§impl FromByteSlice for ModbusSlaveReadDiscreteInputsRequestEvent
impl FromByteSlice for ModbusSlaveReadDiscreteInputsRequestEvent
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]) -> ModbusSlaveReadDiscreteInputsRequestEvent
fn from_le_byte_slice(bytes: &[u8]) -> ModbusSlaveReadDiscreteInputsRequestEvent
Deserialize the implementing type from a byte slice.
Source§impl PartialEq for ModbusSlaveReadDiscreteInputsRequestEvent
impl PartialEq for ModbusSlaveReadDiscreteInputsRequestEvent
Source§fn eq(&self, other: &ModbusSlaveReadDiscreteInputsRequestEvent) -> bool
fn eq(&self, other: &ModbusSlaveReadDiscreteInputsRequestEvent) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for ModbusSlaveReadDiscreteInputsRequestEvent
impl Eq for ModbusSlaveReadDiscreteInputsRequestEvent
impl StructuralPartialEq for ModbusSlaveReadDiscreteInputsRequestEvent
Auto Trait Implementations§
impl Freeze for ModbusSlaveReadDiscreteInputsRequestEvent
impl RefUnwindSafe for ModbusSlaveReadDiscreteInputsRequestEvent
impl Send for ModbusSlaveReadDiscreteInputsRequestEvent
impl Sync for ModbusSlaveReadDiscreteInputsRequestEvent
impl Unpin for ModbusSlaveReadDiscreteInputsRequestEvent
impl UnwindSafe for ModbusSlaveReadDiscreteInputsRequestEvent
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