#[repr(u8)]pub enum ErrorFlags {
DATA_VALUE = 1,
DATA_LENGTH = 2,
EXC_CODE = 4,
FUNC_CODE = 8,
PROTO_ID = 16,
}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 for ErrorFlags
impl BitAnd for ErrorFlags
Source§impl BitOr for ErrorFlags
impl BitOr for ErrorFlags
Source§impl BitXor for ErrorFlags
impl BitXor for ErrorFlags
Source§impl Clone for ErrorFlags
impl Clone for ErrorFlags
Source§fn clone(&self) -> ErrorFlags
fn clone(&self) -> ErrorFlags
Returns a duplicate 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<Flags<ErrorFlags>> for ErrorFlags
impl PartialEq<Flags<ErrorFlags>> for ErrorFlags
Source§impl PartialEq for ErrorFlags
impl PartialEq for ErrorFlags
impl Copy for ErrorFlags
impl Eq for ErrorFlags
impl StructuralPartialEq for ErrorFlags
Auto Trait Implementations§
impl Freeze for ErrorFlags
impl RefUnwindSafe for ErrorFlags
impl Send for ErrorFlags
impl Sync for ErrorFlags
impl Unpin for ErrorFlags
impl UnwindSafe for ErrorFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more