pub enum RecoveryPolicyError {
InvalidStatus {
status: u16,
},
UnsupportedCategory {
category: Category,
},
}Expand description
Invalid recovery options, rejected before a wrapper can dispatch a request.
Positive attempt counts and nonnegative finite delays are enforced by Rust’s
NonZeroU32 and Duration types. Base delays above the ceiling are valid.
Variants§
InvalidStatus
Only HTTP error statuses can be selected for recovery.
UnsupportedCategory
No provider policy proves replay safe for this category.
Trait Implementations§
Source§impl Clone for RecoveryPolicyError
impl Clone for RecoveryPolicyError
Source§fn clone(&self) -> RecoveryPolicyError
fn clone(&self) -> RecoveryPolicyError
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 RecoveryPolicyError
Source§impl Debug for RecoveryPolicyError
impl Debug for RecoveryPolicyError
Source§impl Display for RecoveryPolicyError
impl Display for RecoveryPolicyError
impl Eq for RecoveryPolicyError
Source§impl Error for RecoveryPolicyError
impl Error for RecoveryPolicyError
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 From<RecoveryPolicyError> for MojenticError
impl From<RecoveryPolicyError> for MojenticError
Source§fn from(source: RecoveryPolicyError) -> Self
fn from(source: RecoveryPolicyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RecoveryPolicyError
impl PartialEq for RecoveryPolicyError
impl StructuralPartialEq for RecoveryPolicyError
Auto Trait Implementations§
impl Freeze for RecoveryPolicyError
impl RefUnwindSafe for RecoveryPolicyError
impl Send for RecoveryPolicyError
impl Sync for RecoveryPolicyError
impl Unpin for RecoveryPolicyError
impl UnsafeUnpin for RecoveryPolicyError
impl UnwindSafe for RecoveryPolicyError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.