pub struct RetryClassifierPriority { /* private fields */ }
Available on crate feature
client
only.Expand description
The priority of a retry classifier. Classifiers with a higher priority will run before classifiers with a lower priority. 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
pub fn with_lower_priority_than(other: Self) -> Self
Create a new RetryClassifierPriority
with lower priority than the given priority.
sourcepub fn with_higher_priority_than(other: Self) -> Self
pub fn with_higher_priority_than(other: Self) -> Self
Create 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
Returns a copy of the value. Read more
1.0.0 · 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 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
This method tests for
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
This method tests less than or equal to (for
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 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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.