pub enum ErrorTransience {
Permanent,
Transient,
Unknown,
}Expand description
Whether the underlying failure condition is expected to be short-lived.
A transient error does not by itself make retrying an operation safe. The caller must also account for idempotency and whether the operation may have completed before the error was observed.
Variants§
Permanent
Repeating the same operation is not expected to remove the failure.
Transient
The failure condition may disappear without changing the request.
Unknown
The adapter cannot reliably classify the failure condition.
Trait Implementations§
Source§impl Clone for ErrorTransience
impl Clone for ErrorTransience
Source§fn clone(&self) -> ErrorTransience
fn clone(&self) -> ErrorTransience
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 ErrorTransience
Source§impl Debug for ErrorTransience
impl Debug for ErrorTransience
impl Eq for ErrorTransience
Source§impl Hash for ErrorTransience
impl Hash for ErrorTransience
Source§impl PartialEq for ErrorTransience
impl PartialEq for ErrorTransience
impl StructuralPartialEq for ErrorTransience
Auto Trait Implementations§
impl Freeze for ErrorTransience
impl RefUnwindSafe for ErrorTransience
impl Send for ErrorTransience
impl Sync for ErrorTransience
impl Unpin for ErrorTransience
impl UnsafeUnpin for ErrorTransience
impl UnwindSafe for ErrorTransience
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