Enum rodbus::AppDecodeLevel
source · pub enum AppDecodeLevel {
Nothing,
FunctionCode,
DataHeaders,
DataValues,
}Expand description
Controls how transmitted and received message at the application layer are decoded at the INFO log level
Application-layer messages are referred to as Protocol Data Units (PDUs) in the specification.
Variants§
Nothing
Decode nothing
FunctionCode
Decode the function code only
DataHeaders
Decode the function code and the general description of the data
DataValues
Decode the function code, the general description of the data and the actual data values
Trait Implementations§
source§impl Clone for AppDecodeLevel
impl Clone for AppDecodeLevel
source§fn clone(&self) -> AppDecodeLevel
fn clone(&self) -> AppDecodeLevel
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 Debug for AppDecodeLevel
impl Debug for AppDecodeLevel
source§impl From<AppDecodeLevel> for DecodeLevel
impl From<AppDecodeLevel> for DecodeLevel
source§fn from(pdu: AppDecodeLevel) -> Self
fn from(pdu: AppDecodeLevel) -> Self
Converts to this type from the input type.
source§impl PartialEq<AppDecodeLevel> for AppDecodeLevel
impl PartialEq<AppDecodeLevel> for AppDecodeLevel
source§fn eq(&self, other: &AppDecodeLevel) -> bool
fn eq(&self, other: &AppDecodeLevel) -> bool
This method tests for
self and other values to be equal, and is used
by ==.