Enum sawp_modbus::ErrorFlags
source · #[repr(u8)]
pub enum ErrorFlags {
DATA_VALUE,
DATA_LENGTH,
EXC_CODE,
FUNC_CODE,
PROTO_ID,
}
Expand description
Flags which identify messages which parse as modbus but contain invalid data. The caller can use the message’s error flags to see if and what errors were in the pack of bytes and take action using this information.
Variants§
Trait Implementations§
source§impl Binary for ErrorFlags
impl Binary for ErrorFlags
source§impl BitAnd<ErrorFlags> for ErrorFlags
impl BitAnd<ErrorFlags> for ErrorFlags
source§impl BitOr<ErrorFlags> for ErrorFlags
impl BitOr<ErrorFlags> for ErrorFlags
source§impl BitXor<ErrorFlags> for ErrorFlags
impl BitXor<ErrorFlags> for ErrorFlags
source§impl Clone for ErrorFlags
impl Clone for ErrorFlags
source§fn clone(&self) -> ErrorFlags
fn clone(&self) -> ErrorFlags
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 ErrorFlags
impl Debug for ErrorFlags
source§impl Display for ErrorFlags
impl Display for ErrorFlags
source§impl Flag for ErrorFlags
impl Flag for ErrorFlags
source§impl FromStr for ErrorFlags
impl FromStr for ErrorFlags
source§impl Not for ErrorFlags
impl Not for ErrorFlags
source§impl PartialEq<ErrorFlags> for ErrorFlags
impl PartialEq<ErrorFlags> for ErrorFlags
source§fn eq(&self, other: &ErrorFlags) -> bool
fn eq(&self, other: &ErrorFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.