pub enum RetryPermitError {
TooEarly,
MonotonicRollback,
ElapsedBudgetExhausted,
}Expand description
Why a one-use retry permit did not authorize execution.
Variants§
TooEarly
The caller observed a time before the authorized delay completed.
MonotonicRollback
The caller observation moved backward relative to controller state.
ElapsedBudgetExhausted
The hard elapsed budget expired before execution.
Trait Implementations§
Source§impl Clone for RetryPermitError
impl Clone for RetryPermitError
Source§fn clone(&self) -> RetryPermitError
fn clone(&self) -> RetryPermitError
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 RetryPermitError
Source§impl Debug for RetryPermitError
impl Debug for RetryPermitError
Source§impl Display for RetryPermitError
impl Display for RetryPermitError
impl Eq for RetryPermitError
Source§impl Error for RetryPermitError
impl Error for RetryPermitError
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 RetryPermitError
impl PartialEq for RetryPermitError
impl StructuralPartialEq for RetryPermitError
Auto Trait Implementations§
impl Freeze for RetryPermitError
impl RefUnwindSafe for RetryPermitError
impl Send for RetryPermitError
impl Sync for RetryPermitError
impl Unpin for RetryPermitError
impl UnsafeUnpin for RetryPermitError
impl UnwindSafe for RetryPermitError
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