pub enum EtherNetIpError {
Show 22 variants
Io(Error),
Protocol(String),
TagNotFound(String),
DataTypeMismatch {
expected: String,
actual: String,
},
WriteError {
status: u8,
message: String,
},
ReadError {
status: u8,
message: String,
},
InvalidResponse {
reason: String,
},
Timeout(Duration),
Udt(String),
Connection(String),
ConnectionLost(String),
CipError {
code: u8,
message: String,
},
StringTooLong {
max_length: usize,
actual_length: usize,
},
InvalidString {
reason: String,
},
StringWriteError {
status: u8,
message: String,
},
StringReadError {
status: u8,
message: String,
},
InvalidStringResponse {
reason: String,
},
Tag(String),
Permission(String),
Utf8(FromUtf8Error),
Other(String),
Subscription(String),
}Expand description
Error types that can occur during EtherNet/IP communication
Variants§
Io(Error)
IO error (network issues, connection problems)
Protocol(String)
Protocol error (invalid packet format, unsupported features)
TagNotFound(String)
Tag not found in PLC
DataTypeMismatch
Data type mismatch
WriteError
Write error with status code
ReadError
Read error with status code
InvalidResponse
Invalid response from PLC
Timeout(Duration)
Timeout error
Udt(String)
UDT error
Connection(String)
Connection error (PLC not responding, session issues)
ConnectionLost(String)
Connection lost (network closed, PLC unreachable)
CipError
CIP protocol error with status code (from PLC)
StringTooLong
String is too long for the PLC’s string type
InvalidString
String contains invalid characters
StringWriteError
String write operation failed
StringReadError
String read operation failed
InvalidStringResponse
Invalid string response from PLC
Tag(String)
Tag error
Permission(String)
Permission denied
Utf8(FromUtf8Error)
UTF-8 error
Other(String)
Other error
Subscription(String)
Subscription error
Implementations§
Source§impl EtherNetIpError
impl EtherNetIpError
Sourcepub fn is_retriable(&self) -> bool
pub fn is_retriable(&self) -> bool
Returns true if the error is likely retriable (e.g. timeout, connection lost). Use this to decide whether to retry an operation or reconnect.