Enum rodbus::FrameDecodeLevel
source · pub enum FrameDecodeLevel {
Nothing,
Header,
Payload,
}Expand description
Controls how the transmitted and received frames are decoded at the INFO log level
Transport-specific framing wraps the application-layer traffic. You’ll see these frames called “ADUs” in the Modbus specification.
On TCP, this is the MBAP decoding. On serial, this controls the serial line PDU.
Variants§
Nothing
Decode nothing
Header
Decode the header
Payload
Decode the header and the raw payload as hexadecimal
Trait Implementations§
source§impl Clone for FrameDecodeLevel
impl Clone for FrameDecodeLevel
source§fn clone(&self) -> FrameDecodeLevel
fn clone(&self) -> FrameDecodeLevel
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 FrameDecodeLevel
impl Debug for FrameDecodeLevel
source§impl PartialEq<FrameDecodeLevel> for FrameDecodeLevel
impl PartialEq<FrameDecodeLevel> for FrameDecodeLevel
source§fn eq(&self, other: &FrameDecodeLevel) -> bool
fn eq(&self, other: &FrameDecodeLevel) -> bool
This method tests for
self and other values to be equal, and is used
by ==.