Enum sawp_modbus::CodeCategory
source · #[repr(u8)]pub enum CodeCategory {
PUBLIC_ASSIGNED = 1,
PUBLIC_UNASSIGNED = 2,
USER_DEFINED = 4,
RESERVED = 8,
}
Expand description
Function Code Categories as stated in the protocol reference
Variants§
Trait Implementations§
source§impl Binary for CodeCategory
impl Binary for CodeCategory
source§impl BitAnd for CodeCategory
impl BitAnd for CodeCategory
source§impl BitOr for CodeCategory
impl BitOr for CodeCategory
source§impl BitXor for CodeCategory
impl BitXor for CodeCategory
source§impl Clone for CodeCategory
impl Clone for CodeCategory
source§fn clone(&self) -> CodeCategory
fn clone(&self) -> CodeCategory
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 CodeCategory
impl Debug for CodeCategory
source§impl Display for CodeCategory
impl Display for CodeCategory
source§impl Flag for CodeCategory
impl Flag for CodeCategory
source§impl FromStr for CodeCategory
impl FromStr for CodeCategory
source§impl Not for CodeCategory
impl Not for CodeCategory
source§impl PartialEq<Flags<CodeCategory>> for CodeCategory
impl PartialEq<Flags<CodeCategory>> for CodeCategory
source§impl PartialEq for CodeCategory
impl PartialEq for CodeCategory
source§fn eq(&self, other: &CodeCategory) -> bool
fn eq(&self, other: &CodeCategory) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CodeCategory
impl Eq for CodeCategory
impl StructuralPartialEq for CodeCategory
Auto Trait Implementations§
impl Freeze for CodeCategory
impl RefUnwindSafe for CodeCategory
impl Send for CodeCategory
impl Sync for CodeCategory
impl Unpin for CodeCategory
impl UnwindSafe for CodeCategory
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)