pub trait AzError:
Copy
+ Eq
+ Display {
const CLASS: ErrorClass;
// Required method
fn code(&self) -> u16;
// Provided methods
fn os_code(&self) -> Option<u32> { ... }
fn is_retryable(&self) -> bool { ... }
}Expand description
Trait that helps with making sure all errors use the same format
Required Associated Constants§
const CLASS: ErrorClass
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".