pub enum RetryDisposition {
Never,
Safe,
Unknown,
}Expand description
Retry guidance for one error condition.
Variants§
Never
Retrying will not help until input or configuration changes.
Safe
Retrying the same operation can be reasonable.
Unknown
The runtime cannot determine retry safety from the current surface.
Trait Implementations§
Source§impl Clone for RetryDisposition
impl Clone for RetryDisposition
Source§fn clone(&self) -> RetryDisposition
fn clone(&self) -> RetryDisposition
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 moreSource§impl Debug for RetryDisposition
impl Debug for RetryDisposition
Source§impl PartialEq for RetryDisposition
impl PartialEq for RetryDisposition
Source§fn eq(&self, other: &RetryDisposition) -> bool
fn eq(&self, other: &RetryDisposition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RetryDisposition
impl Eq for RetryDisposition
impl StructuralPartialEq for RetryDisposition
Auto Trait Implementations§
impl Freeze for RetryDisposition
impl RefUnwindSafe for RetryDisposition
impl Send for RetryDisposition
impl Sync for RetryDisposition
impl Unpin for RetryDisposition
impl UnsafeUnpin for RetryDisposition
impl UnwindSafe for RetryDisposition
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).