Enum sawp_modbus::ErrorFlags[][src]

#[repr(u8)]pub enum ErrorFlags {
    DATA_VALUE,
    DATA_LENGTH,
    EXC_CODE,
    FUNC_CODE,
    PROTO_ID,
}

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

DATA_VALUE
DATA_LENGTH
EXC_CODE
FUNC_CODE
PROTO_ID

Trait Implementations

impl Binary for ErrorFlags[src]

impl BitAnd<ErrorFlags> for ErrorFlags[src]

type Output = Flags<ErrorFlags>

The resulting type after applying the & operator.

impl BitOr<ErrorFlags> for ErrorFlags[src]

type Output = Flags<ErrorFlags>

The resulting type after applying the | operator.

impl BitXor<ErrorFlags> for ErrorFlags[src]

type Output = Flags<ErrorFlags>

The resulting type after applying the ^ operator.

impl Clone for ErrorFlags[src]

impl Copy for ErrorFlags[src]

impl Debug for ErrorFlags[src]

impl Display for ErrorFlags[src]

impl Flag for ErrorFlags[src]

type Primitive = u8

Associated primitive numeric type

impl FromStr for ErrorFlags[src]

type Err = ()

The associated error which can be returned from parsing.

impl Not for ErrorFlags[src]

type Output = Flags<ErrorFlags>

The resulting type after applying the ! operator.

impl PartialEq<ErrorFlags> for ErrorFlags[src]

impl PartialEq<Flags<ErrorFlags, <ErrorFlags as Flag>::Primitive>> for ErrorFlags[src]

impl StructuralPartialEq for ErrorFlags[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.