pub enum EtherNetIpError {
Show 20 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),
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)
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
Trait Implementations§
Source§impl Debug for EtherNetIpError
impl Debug for EtherNetIpError
Source§impl Display for EtherNetIpError
impl Display for EtherNetIpError
Source§impl Error for EtherNetIpError
impl Error for EtherNetIpError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for EtherNetIpError
impl From<Error> for EtherNetIpError
Source§impl From<FromUtf8Error> for EtherNetIpError
impl From<FromUtf8Error> for EtherNetIpError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EtherNetIpError
impl !RefUnwindSafe for EtherNetIpError
impl Send for EtherNetIpError
impl Sync for EtherNetIpError
impl Unpin for EtherNetIpError
impl !UnwindSafe for EtherNetIpError
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