pub enum Protocol {
ModbusTcp,
ModbusRtu,
OpcUa,
BacnetIp,
KnxIp,
}Expand description
Supported protocols.
Variants§
ModbusTcp
Modbus TCP protocol.
ModbusRtu
Modbus RTU protocol.
OpcUa
OPC UA protocol.
BacnetIp
BACnet/IP protocol.
KnxIp
KNXnet/IP protocol.
Implementations§
Source§impl Protocol
impl Protocol
Sourcepub fn default_port(&self) -> u16
pub fn default_port(&self) -> u16
Get default port for this protocol.
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
Get protocol display name.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Protocol
impl<'de> Deserialize<'de> for Protocol
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 IntoEnumIterator for Protocol
impl IntoEnumIterator for Protocol
type Iterator = ProtocolIter
fn iter() -> ProtocolIter ⓘ
impl Copy for Protocol
impl Eq for Protocol
impl StructuralPartialEq for Protocol
Auto Trait Implementations§
impl Freeze for Protocol
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnsafeUnpin for Protocol
impl UnwindSafe for Protocol
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.