pub enum SystemType {
Type1P2W,
Type3P4W,
}Expand description
The system (wiring) type.
Note: To set the value you need ‘KPPA’.
Variants§
Implementations§
Source§impl SystemType
impl SystemType
pub fn decode_from_holding_registers(words: &[Word]) -> Result<Self, Error>
pub fn encode_for_write_registers(&self) -> Vec<Word> ⓘ
Trait Implementations§
Source§impl Clone for SystemType
impl Clone for SystemType
Source§fn clone(&self) -> SystemType
fn clone(&self) -> SystemType
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 SystemType
impl Debug for SystemType
Source§impl Default for SystemType
impl Default for SystemType
Source§fn default() -> SystemType
fn default() -> SystemType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SystemType
impl<'de> Deserialize<'de> for SystemType
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
Source§impl Display for SystemType
impl Display for SystemType
Source§impl ModbusParam for SystemType
impl ModbusParam for SystemType
Source§impl PartialEq for SystemType
impl PartialEq for SystemType
Source§impl Serialize for SystemType
impl Serialize for SystemType
impl Copy for SystemType
impl StructuralPartialEq for SystemType
Auto Trait Implementations§
impl Freeze for SystemType
impl RefUnwindSafe for SystemType
impl Send for SystemType
impl Sync for SystemType
impl Unpin for SystemType
impl UnwindSafe for SystemType
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