pub enum RegisterArea {
Coil,
DiscreteInput,
HoldingRegister,
InputRegister,
}Expand description
Modbus register area.
Variants§
Coil
Read/write single bit (function 0x01 read, 0x05/0x0F write).
DiscreteInput
Read-only bit (function 0x02).
HoldingRegister
Read/write 16-bit register (function 0x03 read, 0x06/0x10 write).
InputRegister
Read-only 16-bit register (function 0x04).
Trait Implementations§
Source§impl Clone for RegisterArea
impl Clone for RegisterArea
Source§fn clone(&self) -> RegisterArea
fn clone(&self) -> RegisterArea
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RegisterArea
Source§impl Debug for RegisterArea
impl Debug for RegisterArea
Source§impl<'de> Deserialize<'de> for RegisterArea
impl<'de> Deserialize<'de> for RegisterArea
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RegisterArea
Source§impl Hash for RegisterArea
impl Hash for RegisterArea
Source§impl PartialEq for RegisterArea
impl PartialEq for RegisterArea
Source§impl Serialize for RegisterArea
impl Serialize for RegisterArea
impl StructuralPartialEq for RegisterArea
Auto Trait Implementations§
impl Freeze for RegisterArea
impl RefUnwindSafe for RegisterArea
impl Send for RegisterArea
impl Sync for RegisterArea
impl Unpin for RegisterArea
impl UnsafeUnpin for RegisterArea
impl UnwindSafe for RegisterArea
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