#[non_exhaustive]pub enum ErrorCategory {
Network,
Timeout,
Session,
RoutePath,
CipProtocol,
BatchEmbeddedService,
KnownControllerLimitation,
DataType,
NotFound,
Unknown,
}Expand description
Stable error classification used by diagnostics and retry decisions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Network
Socket or other network I/O failure.
Timeout
Request deadline exceeded.
Session
EtherNet/IP session or connection failure.
RoutePath
Invalid or unreachable CIP route.
CipProtocol
General CIP protocol rejection.
BatchEmbeddedService
Failure reported by an embedded batch service.
KnownControllerLimitation
Recognized controller/firmware restriction.
DataType
Value type or encoding mismatch.
NotFound
Requested tag or path was not found.
Unknown
Error did not match a stable category.
Implementations§
Source§impl ErrorCategory
impl ErrorCategory
Sourcepub fn is_retriable(self) -> bool
pub fn is_retriable(self) -> bool
Returns whether retrying may succeed without changing the request.
Trait Implementations§
Source§impl Clone for ErrorCategory
impl Clone for ErrorCategory
Source§fn clone(&self) -> ErrorCategory
fn clone(&self) -> ErrorCategory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ErrorCategory
Source§impl Debug for ErrorCategory
impl Debug for ErrorCategory
Source§impl<'de> Deserialize<'de> for ErrorCategory
impl<'de> Deserialize<'de> for ErrorCategory
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 Eq for ErrorCategory
Source§impl PartialEq for ErrorCategory
impl PartialEq for ErrorCategory
Source§impl Serialize for ErrorCategory
impl Serialize for ErrorCategory
impl StructuralPartialEq for ErrorCategory
Auto Trait Implementations§
impl Freeze for ErrorCategory
impl RefUnwindSafe for ErrorCategory
impl Send for ErrorCategory
impl Sync for ErrorCategory
impl Unpin for ErrorCategory
impl UnsafeUnpin for ErrorCategory
impl UnwindSafe for ErrorCategory
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.