pub enum ExponentialBackoffError {
ZeroDelay,
InitialExceedsMaximum,
InvalidMultiplier,
}Expand description
Invalid exponential backoff configuration.
Variants§
ZeroDelay
Initial and maximum delays must be nonzero.
InitialExceedsMaximum
Initial delay exceeds the maximum.
InvalidMultiplier
Multiplier is zero or exceeds its hard bound.
Trait Implementations§
Source§impl Clone for ExponentialBackoffError
impl Clone for ExponentialBackoffError
Source§fn clone(&self) -> ExponentialBackoffError
fn clone(&self) -> ExponentialBackoffError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExponentialBackoffError
Source§impl Debug for ExponentialBackoffError
impl Debug for ExponentialBackoffError
Source§impl Display for ExponentialBackoffError
impl Display for ExponentialBackoffError
impl Eq for ExponentialBackoffError
Source§impl Error for ExponentialBackoffError
impl Error for ExponentialBackoffError
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()
Source§impl PartialEq for ExponentialBackoffError
impl PartialEq for ExponentialBackoffError
impl StructuralPartialEq for ExponentialBackoffError
Auto Trait Implementations§
impl Freeze for ExponentialBackoffError
impl RefUnwindSafe for ExponentialBackoffError
impl Send for ExponentialBackoffError
impl Sync for ExponentialBackoffError
impl Unpin for ExponentialBackoffError
impl UnsafeUnpin for ExponentialBackoffError
impl UnwindSafe for ExponentialBackoffError
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