Enum backoff::Error [−][src]
Expand description
Error is the error value in an operation’s result.
Based on the two possible values, the operation may be retried.
Variants
Permanent(E)
Permanent means that it’s impossible to execute the operation
successfully. This error is immediately returned from retry()
.
Transient
Transient means that the error is temporary. If the retry_after
is None
the operation should be retried according to the backoff policy, else after
the specified duration. Useful for handling ratelimits like a HTTP 429 response.
Implementations
Trait Implementations
use the Display impl or to_string()
The lower-level source of this error, if any. Read more
replaced by Error::source, which can support downcasting
By default all errors are transient. Permanent errors can
be constructed explicitly. This implementation is for making
the question mark operator (?) and the try!
macro to work.