pub trait ErrorClassification: Display + Error {
    // Required methods
    fn error_type(&self) -> &str;
    fn is_retryable(&self) -> bool;
    fn is_timeout(&self) -> bool;
    fn is_auth_error(&self) -> bool;
    fn is_connection_error(&self) -> bool;
}Expand description
Generic error trait for classification