#[repr(u8)]pub enum ModbusPortType {
ControlRS485RTUMain = 0,
EndRS485RTUMain = 1,
ControlModbusTCPConnectSlave = 3,
}Expand description
ModBus寄存器通讯端口
Variants§
ControlRS485RTUMain = 0
控制器RS485端口
EndRS485RTUMain = 1
末端接口板RS485接口
ControlModbusTCPConnectSlave = 3
控制器ModbusTCP连接外部从站端口
Trait Implementations§
Source§impl Clone for ModbusPortType
impl Clone for ModbusPortType
Source§fn clone(&self) -> ModbusPortType
fn clone(&self) -> ModbusPortType
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 ModbusPortType
impl Debug for ModbusPortType
Source§impl<'de> Deserialize<'de> for ModbusPortType
impl<'de> Deserialize<'de> for ModbusPortType
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 From<ModbusPortType> for u8
impl From<ModbusPortType> for u8
Source§fn from(value: ModbusPortType) -> Self
fn from(value: ModbusPortType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ModbusPortType
impl PartialEq for ModbusPortType
Source§impl Serialize for ModbusPortType
impl Serialize for ModbusPortType
impl Copy for ModbusPortType
impl Eq for ModbusPortType
impl StructuralPartialEq for ModbusPortType
Auto Trait Implementations§
impl Freeze for ModbusPortType
impl RefUnwindSafe for ModbusPortType
impl Send for ModbusPortType
impl Sync for ModbusPortType
impl Unpin for ModbusPortType
impl UnwindSafe for ModbusPortType
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