pub struct RetryClassifierPriority { /* private fields */ }
Expand description
The priority of a retry classifier. Classifiers with a higher priority will run after classifiers with a lower priority and may override their result. Classifiers with equal priorities make no guarantees about which will run first.
Implementations§
Source§impl RetryClassifierPriority
impl RetryClassifierPriority
Sourcepub fn http_status_code_classifier() -> Self
pub fn http_status_code_classifier() -> Self
Create a new RetryClassifierPriority
with the default priority for the HttpStatusCodeClassifier
.
Sourcepub fn modeled_as_retryable_classifier() -> Self
pub fn modeled_as_retryable_classifier() -> Self
Create a new RetryClassifierPriority
with the default priority for the ModeledAsRetryableClassifier
.
Sourcepub fn transient_error_classifier() -> Self
pub fn transient_error_classifier() -> Self
Create a new RetryClassifierPriority
with the default priority for the TransientErrorClassifier
.
Sourcepub fn with_lower_priority_than(other: Self) -> Self
👎Deprecated: use the less-confusingly-named RetryClassifierPriority::run_before
instead
pub fn with_lower_priority_than(other: Self) -> Self
RetryClassifierPriority::run_before
insteadCreate a new RetryClassifierPriority
with lower priority than the given priority.
Sourcepub fn run_before(other: Self) -> Self
pub fn run_before(other: Self) -> Self
Create a new RetryClassifierPriority
that can be overridden by the given priority.
Retry classifiers are run in order from lowest to highest priority. A classifier that runs later can override a decision from a classifier that runs earlier.
Sourcepub fn with_higher_priority_than(other: Self) -> Self
👎Deprecated: use the less-confusingly-named RetryClassifierPriority::run_after
instead
pub fn with_higher_priority_than(other: Self) -> Self
RetryClassifierPriority::run_after
insteadCreate a new RetryClassifierPriority
with higher priority than the given priority.
Trait Implementations§
Source§impl Clone for RetryClassifierPriority
impl Clone for RetryClassifierPriority
Source§fn clone(&self) -> RetryClassifierPriority
fn clone(&self) -> RetryClassifierPriority
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RetryClassifierPriority
impl Debug for RetryClassifierPriority
Source§impl Default for RetryClassifierPriority
impl Default for RetryClassifierPriority
Source§impl Ord for RetryClassifierPriority
impl Ord for RetryClassifierPriority
Source§impl PartialEq for RetryClassifierPriority
impl PartialEq for RetryClassifierPriority
Source§impl PartialOrd for RetryClassifierPriority
impl PartialOrd for RetryClassifierPriority
impl Copy for RetryClassifierPriority
impl Eq for RetryClassifierPriority
impl StructuralPartialEq for RetryClassifierPriority
Auto Trait Implementations§
impl Freeze for RetryClassifierPriority
impl RefUnwindSafe for RetryClassifierPriority
impl Send for RetryClassifierPriority
impl Sync for RetryClassifierPriority
impl Unpin for RetryClassifierPriority
impl UnwindSafe for RetryClassifierPriority
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more