pub struct RetryClassifierPriority { /* private fields */ }
client
only.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§fn eq(&self, other: &RetryClassifierPriority) -> bool
fn eq(&self, other: &RetryClassifierPriority) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RetryClassifierPriority
impl PartialOrd for RetryClassifierPriority
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl 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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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