pub trait ProvideErrorKind {
    fn retryable_error_kind(&self) -> Option<ErrorKind>;
fn code(&self) -> Option<&str>; }
Expand description

Trait that provides an ErrorKind and an error code.

Required methods

Returns the ErrorKind when the error is modeled as retryable

If the error kind cannot be determined (e.g. the error is unmodeled at the error kind depends on an HTTP status code, return None.

Returns the code for this error if one exists