Struct rodbus::DecodeLevel
source · pub struct DecodeLevel {
pub app: AppDecodeLevel,
pub frame: FrameDecodeLevel,
pub physical: PhysDecodeLevel,
}Expand description
Controls the decoding of transmitted and received data at the application, frame, and physical layer
Fields§
§app: AppDecodeLevelControls decoding of the application layer (PDU)
frame: FrameDecodeLevelControls decoding of frames (MBAP / Serial PDU)
physical: PhysDecodeLevelControls the logging of physical layer read/write
Implementations§
source§impl DecodeLevel
impl DecodeLevel
sourcepub fn new(
pdu: AppDecodeLevel,
adu: FrameDecodeLevel,
physical: PhysDecodeLevel
) -> Self
pub fn new(
pdu: AppDecodeLevel,
adu: FrameDecodeLevel,
physical: PhysDecodeLevel
) -> Self
construct a DecodeLevel from its fields
sourcepub fn application(self, level: AppDecodeLevel) -> Self
pub fn application(self, level: AppDecodeLevel) -> Self
Change the application decode level
sourcepub fn frame(self, level: FrameDecodeLevel) -> Self
pub fn frame(self, level: FrameDecodeLevel) -> Self
Change the frame decode level
sourcepub fn physical(self, level: PhysDecodeLevel) -> Self
pub fn physical(self, level: PhysDecodeLevel) -> Self
Change the physical layer decode level
Trait Implementations§
source§impl Clone for DecodeLevel
impl Clone for DecodeLevel
source§fn clone(&self) -> DecodeLevel
fn clone(&self) -> DecodeLevel
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 DecodeLevel
impl Debug for DecodeLevel
source§impl Default for DecodeLevel
impl Default for DecodeLevel
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<DecodeLevel> for DecodeLevel
impl PartialEq<DecodeLevel> for DecodeLevel
source§fn eq(&self, other: &DecodeLevel) -> bool
fn eq(&self, other: &DecodeLevel) -> bool
This method tests for
self and other values to be equal, and is used
by ==.