Enum sawp_modbus::ErrorFlags [−][src]
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
impl Binary for ErrorFlags
[src]
impl BitAnd<ErrorFlags> for ErrorFlags
[src]
type Output = Flags<ErrorFlags>
The resulting type after applying the &
operator.
fn bitand(self, other: Self) -> Self::Output
[src]
impl BitOr<ErrorFlags> for ErrorFlags
[src]
type Output = Flags<ErrorFlags>
The resulting type after applying the |
operator.
fn bitor(self, other: Self) -> Self::Output
[src]
impl BitXor<ErrorFlags> for ErrorFlags
[src]
type Output = Flags<ErrorFlags>
The resulting type after applying the ^
operator.
fn bitxor(self, other: Self) -> Self::Output
[src]
impl Clone for ErrorFlags
[src]
fn clone(&self) -> ErrorFlags
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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
const ITEMS: &'static [Self]
[src]
fn bits(self) -> Self::Primitive
[src]
fn none() -> Flags<Self>
[src]
fn all() -> Flags<Self>
[src]
impl FromStr for ErrorFlags
[src]
type Err = ()
The associated error which can be returned from parsing.
fn from_str(val: &str) -> Result<ErrorFlags, Self::Err>
[src]
impl Not for ErrorFlags
[src]
type Output = Flags<ErrorFlags>
The resulting type after applying the !
operator.
fn not(self) -> Self::Output
[src]
impl PartialEq<ErrorFlags> for ErrorFlags
[src]
fn eq(&self, other: &ErrorFlags) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<Flags<ErrorFlags, <ErrorFlags as Flag>::Primitive>> for ErrorFlags
[src]
fn eq(&self, other: &Flags<Self>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for ErrorFlags
[src]
Auto Trait Implementations
impl RefUnwindSafe for ErrorFlags
impl Send for ErrorFlags
impl Sync for ErrorFlags
impl Unpin for ErrorFlags
impl UnwindSafe for ErrorFlags
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,