pub trait ExtError: Error {
type Kind;
// Required methods
fn error_eq(&self, other: &Self) -> bool;
fn error_kind(&self) -> Self::Kind;
}
Expand description
Extension trait providing additional methods for T:
Error
.
Required Associated Types§
Required Methods§
Sourcefn error_eq(&self, other: &Self) -> bool
fn error_eq(&self, other: &Self) -> bool
Checks if two errors are equivalent based on their kind or other criteria.
Sourcefn error_kind(&self) -> Self::Kind
fn error_kind(&self) -> Self::Kind
Returns the kind of the error, if applicable.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.