pub enum FailureScope {
Request,
Model,
Credential,
Transport,
}Expand description
What a failure says about the attempt, for retry and cooldown decisions.
Variants§
Request
The request itself is bad; retrying with another credential will not help.
Model
This credential cannot serve this model right now.
Credential
This credential is unusable right now (auth, quota, upstream fault).
Transport
Connection/transport lifecycle fault: may fail over, must not cool credentials.
Trait Implementations§
Source§impl Clone for FailureScope
impl Clone for FailureScope
impl Copy for FailureScope
Source§impl Debug for FailureScope
impl Debug for FailureScope
impl Eq for FailureScope
Source§impl PartialEq for FailureScope
impl PartialEq for FailureScope
impl StructuralPartialEq for FailureScope
Auto Trait Implementations§
impl Freeze for FailureScope
impl RefUnwindSafe for FailureScope
impl Send for FailureScope
impl Sync for FailureScope
impl Unpin for FailureScope
impl UnsafeUnpin for FailureScope
impl UnwindSafe for FailureScope
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.