Enum sawp_modbus::AccessType
source · #[repr(u8)]
pub enum AccessType {
READ,
WRITE,
DISCRETES,
COILS,
INPUT,
HOLDING,
SINGLE,
MULTIPLE,
BIT_ACCESS_MASK,
FUNC_MASK,
WRITE_SINGLE,
WRITE_MULTIPLE,
}
Expand description
Function code groups based on general use. Allows for easier parsing of certain functions, since generally most functions in a group will have the same request/response structure.
Variants§
READ
WRITE
DISCRETES
COILS
INPUT
HOLDING
SINGLE
MULTIPLE
BIT_ACCESS_MASK
DISCRETES | COILS
FUNC_MASK
DISCRETES | COILS | INPUT | HOLDING
WRITE_SINGLE
WRITE | SINGLE
WRITE_MULTIPLE
WRITE | MULTIPLE
Trait Implementations§
source§impl Binary for AccessType
impl Binary for AccessType
source§impl BitAnd<AccessType> for AccessType
impl BitAnd<AccessType> for AccessType
source§impl BitOr<AccessType> for AccessType
impl BitOr<AccessType> for AccessType
source§impl BitXor<AccessType> for AccessType
impl BitXor<AccessType> for AccessType
source§impl Clone for AccessType
impl Clone for AccessType
source§fn clone(&self) -> AccessType
fn clone(&self) -> AccessType
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 AccessType
impl Debug for AccessType
source§impl Display for AccessType
impl Display for AccessType
source§impl Flag for AccessType
impl Flag for AccessType
source§impl FromStr for AccessType
impl FromStr for AccessType
source§impl Not for AccessType
impl Not for AccessType
source§impl PartialEq<AccessType> for AccessType
impl PartialEq<AccessType> for AccessType
source§fn eq(&self, other: &AccessType) -> bool
fn eq(&self, other: &AccessType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.