Enum sawp_modbus::CodeCategory
source · [−]#[repr(u8)]
pub enum CodeCategory {
PUBLIC_ASSIGNED,
PUBLIC_UNASSIGNED,
USER_DEFINED,
RESERVED,
}
Expand description
Function Code Categories as stated in the protocol reference
Variants
PUBLIC_ASSIGNED
PUBLIC_UNASSIGNED
USER_DEFINED
RESERVED
Trait Implementations
sourceimpl Binary for CodeCategory
impl Binary for CodeCategory
sourceimpl BitAnd<CodeCategory> for CodeCategory
impl BitAnd<CodeCategory> for CodeCategory
type Output = Flags<CodeCategory, <CodeCategory as Flag>::Primitive>
type Output = Flags<CodeCategory, <CodeCategory as Flag>::Primitive>
The resulting type after applying the &
operator.
sourceimpl BitOr<CodeCategory> for CodeCategory
impl BitOr<CodeCategory> for CodeCategory
type Output = Flags<CodeCategory, <CodeCategory as Flag>::Primitive>
type Output = Flags<CodeCategory, <CodeCategory as Flag>::Primitive>
The resulting type after applying the |
operator.
sourceimpl BitXor<CodeCategory> for CodeCategory
impl BitXor<CodeCategory> for CodeCategory
type Output = Flags<CodeCategory, <CodeCategory as Flag>::Primitive>
type Output = Flags<CodeCategory, <CodeCategory as Flag>::Primitive>
The resulting type after applying the ^
operator.
sourceimpl Clone for CodeCategory
impl Clone for CodeCategory
sourcefn clone(&self) -> CodeCategory
fn clone(&self) -> CodeCategory
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CodeCategory
impl Debug for CodeCategory
sourceimpl Display for CodeCategory
impl Display for CodeCategory
sourceimpl Flag for CodeCategory
impl Flag for CodeCategory
sourceconst ITEMS: &'static [Self] = &[CodeCategory::PUBLIC_ASSIGNED, CodeCategory::PUBLIC_UNASSIGNED,
CodeCategory::USER_DEFINED, CodeCategory::RESERVED]
const ITEMS: &'static [Self] = &[CodeCategory::PUBLIC_ASSIGNED, CodeCategory::PUBLIC_UNASSIGNED, CodeCategory::USER_DEFINED, CodeCategory::RESERVED]
A list of all flag variants in the enum
sourceimpl FromStr for CodeCategory
impl FromStr for CodeCategory
sourceimpl Not for CodeCategory
impl Not for CodeCategory
type Output = Flags<CodeCategory, <CodeCategory as Flag>::Primitive>
type Output = Flags<CodeCategory, <CodeCategory as Flag>::Primitive>
The resulting type after applying the !
operator.
sourceimpl PartialEq<CodeCategory> for CodeCategory
impl PartialEq<CodeCategory> for CodeCategory
sourceimpl PartialEq<Flags<CodeCategory, <CodeCategory as Flag>::Primitive>> for CodeCategory
impl PartialEq<Flags<CodeCategory, <CodeCategory as Flag>::Primitive>> for CodeCategory
impl Copy for CodeCategory
impl StructuralPartialEq for CodeCategory
Auto Trait Implementations
impl RefUnwindSafe for CodeCategory
impl Send for CodeCategory
impl Sync for CodeCategory
impl Unpin for CodeCategory
impl UnwindSafe for CodeCategory
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more