pub enum FunctionCode {
ReadHoldingRegisters,
ReadInputRegisters,
}Expand description
The Modbus function codes this crate can express. There are two.
A two-variant enum is the read-only rule written where the compiler reads it: a write function code is not a value this crate refuses, it is a value nobody can name.
Variants§
ReadHoldingRegisters
Function code 3. Read holding registers.
ReadInputRegisters
Function code 4. Read input registers.
Implementations§
Trait Implementations§
Source§impl Clone for FunctionCode
impl Clone for FunctionCode
impl Copy for FunctionCode
Source§impl Debug for FunctionCode
impl Debug for FunctionCode
impl Eq for FunctionCode
Source§impl PartialEq for FunctionCode
impl PartialEq for FunctionCode
impl StructuralPartialEq for FunctionCode
Auto Trait Implementations§
impl Forget for FunctionCode
impl Freeze for FunctionCode
impl Move for FunctionCode
impl RefUnwindSafe for FunctionCode
impl Send for FunctionCode
impl Sync for FunctionCode
impl Unpin for FunctionCode
impl UnsafeUnpin 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