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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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
)