Enum BackoffError
#[non_exhaustive]pub enum BackoffError {
BaseAboveCap {
base: Duration,
cap: Duration,
},
}Expand description
Why Backoff::new refused its arguments.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BaseAboveCap
The first delay would exceed the cap, so the cap would be a floor.
Trait Implementations§
§impl Clone for BackoffError
impl Clone for BackoffError
impl Copy for BackoffError
§impl Debug for BackoffError
impl Debug for BackoffError
§impl Display for BackoffError
impl Display for BackoffError
impl Eq for BackoffError
§impl Error for BackoffError
impl Error for BackoffError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
§impl PartialEq for BackoffError
impl PartialEq for BackoffError
impl StructuralPartialEq for BackoffError
Auto Trait Implementations§
impl Freeze for BackoffError
impl RefUnwindSafe for BackoffError
impl Send for BackoffError
impl Sync for BackoffError
impl Unpin for BackoffError
impl UnsafeUnpin for BackoffError
impl UnwindSafe for BackoffError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more