#[repr(u8)]pub enum FunctionCode {
Show 26 variants
RdCoils = 1,
RdDiscreteInputs = 2,
RdHoldRegs = 3,
RdInputRegs = 4,
WrSingleCoil = 5,
WrSingleReg = 6,
RdExcStatus = 7,
Diagnostic = 8,
Program484 = 9,
Poll484 = 10,
GetCommEventCtr = 11,
GetCommEventLog = 12,
ProgramController = 13,
PollController = 14,
WrMultCoils = 15,
WrMultRegs = 16,
ReportServerID = 17,
Program884 = 18,
ResetCommLink = 19,
RdFileRec = 20,
WrFileRec = 21,
MaskWrReg = 22,
RdWrMultRegs = 23,
RdFIFOQueue = 24,
MEI = 43,
Unknown = 44,
}
Expand description
Function code names as stated in the protocol reference
Variants§
RdCoils = 1
RdDiscreteInputs = 2
RdHoldRegs = 3
RdInputRegs = 4
WrSingleCoil = 5
WrSingleReg = 6
RdExcStatus = 7
Diagnostic = 8
Program484 = 9
Poll484 = 10
GetCommEventCtr = 11
GetCommEventLog = 12
ProgramController = 13
PollController = 14
WrMultCoils = 15
WrMultRegs = 16
ReportServerID = 17
Program884 = 18
ResetCommLink = 19
RdFileRec = 20
WrFileRec = 21
MaskWrReg = 22
RdWrMultRegs = 23
RdFIFOQueue = 24
MEI = 43
Unknown = 44
Implementations§
Trait Implementations§
Source§impl Clone for FunctionCode
impl Clone for FunctionCode
Source§fn clone(&self) -> FunctionCode
fn clone(&self) -> FunctionCode
Returns a duplicate 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 FunctionCode
impl Debug for FunctionCode
Source§impl Display for FunctionCode
impl Display for FunctionCode
Source§impl From<FunctionCode> for Flags<AccessType>
impl From<FunctionCode> for Flags<AccessType>
Source§fn from(code: FunctionCode) -> Self
fn from(code: FunctionCode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FunctionCode
impl PartialEq for FunctionCode
Source§impl TryFrom<u8> for FunctionCode
impl TryFrom<u8> for FunctionCode
Source§type Error = TryFromPrimitiveError<FunctionCode>
type Error = TryFromPrimitiveError<FunctionCode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for FunctionCode
impl TryFromPrimitive for FunctionCode
impl Copy for FunctionCode
impl Eq for FunctionCode
impl StructuralPartialEq for FunctionCode
Auto Trait Implementations§
impl Freeze for FunctionCode
impl RefUnwindSafe for FunctionCode
impl Send for FunctionCode
impl Sync for FunctionCode
impl Unpin for FunctionCode
impl UnwindSafe for FunctionCode
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