#[repr(u8)]pub enum PortType {
ControlRS485RTUMain = 0,
EndRS485RTUMain = 1,
ControlRS485RTUSlave = 2,
}Expand description
通讯端口
Variants§
ControlRS485RTUMain = 0
控制器RS485端口为RTU主站
EndRS485RTUMain = 1
末端接口板RS485接口为RTU主站
ControlRS485RTUSlave = 2
控制器RS485端口为RTU从站
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PortType
impl<'de> Deserialize<'de> for PortType
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 Copy for PortType
impl Eq for PortType
impl StructuralPartialEq for PortType
Auto Trait Implementations§
impl Freeze for PortType
impl RefUnwindSafe for PortType
impl Send for PortType
impl Sync for PortType
impl Unpin for PortType
impl UnwindSafe for PortType
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