Struct sawp_modbus::Diagnostic
source · pub struct Diagnostic {
pub raw: u16,
pub code: DiagnosticSubfunction,
}
Expand description
Information on the diagnostic subfunction code parsed
Fields§
§raw: u16
Value of the subfunction bytes
code: DiagnosticSubfunction
Subfunction name associated with the raw value
Trait Implementations§
source§impl Debug for Diagnostic
impl Debug for Diagnostic
source§impl PartialEq<Diagnostic> for Diagnostic
impl PartialEq<Diagnostic> for Diagnostic
source§fn eq(&self, other: &Diagnostic) -> bool
fn eq(&self, other: &Diagnostic) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.