pub enum ReadCode {
Basic,
Regular,
Extended,
Specific,
}
Expand description
Types Represents the Modbus read device identification access type.
Used to specify the type of information to retrieve from a device during a “Read Device Identification” Modbus function (0x2B / 0x0E).
Variants§
Basic
Basic identification (stream access).
Corresponds to value 0x01
. Returns a minimal set of identification data.
Regular
Regular identification (stream access).
Corresponds to value 0x02
. Returns additional identification beyond basic.
Extended
Extended identification (stream access).
Corresponds to value 0x03
. Returns the most comprehensive set of device info.
Specific
Specific identification (individual access).
Corresponds to value 0x04
. Used to retrieve a specific object by ID.
Implementations§
Trait Implementations§
impl Copy for ReadCode
impl Eq for ReadCode
impl StructuralPartialEq for ReadCode
Auto Trait Implementations§
impl Freeze for ReadCode
impl RefUnwindSafe for ReadCode
impl Send for ReadCode
impl Sync for ReadCode
impl Unpin for ReadCode
impl UnwindSafe for ReadCode
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