pub enum HttpRetryMethodPolicy {
IdempotentOnly,
AllMethods,
None,
}Expand description
HTTP method policy used to decide whether a request can be retried.
Variants§
IdempotentOnly
Retry only HTTP methods that are safe to replay by default.
AllMethods
Retry all HTTP methods, including POST and PATCH.
None
Disable method-level retry eligibility.
Implementations§
Trait Implementations§
Source§impl Clone for HttpRetryMethodPolicy
impl Clone for HttpRetryMethodPolicy
Source§fn clone(&self) -> HttpRetryMethodPolicy
fn clone(&self) -> HttpRetryMethodPolicy
Returns a duplicate 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 HttpRetryMethodPolicy
impl Debug for HttpRetryMethodPolicy
Source§impl Default for HttpRetryMethodPolicy
impl Default for HttpRetryMethodPolicy
Source§fn default() -> HttpRetryMethodPolicy
fn default() -> HttpRetryMethodPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for HttpRetryMethodPolicy
impl PartialEq for HttpRetryMethodPolicy
impl Copy for HttpRetryMethodPolicy
impl Eq for HttpRetryMethodPolicy
impl StructuralPartialEq for HttpRetryMethodPolicy
Auto Trait Implementations§
impl Freeze for HttpRetryMethodPolicy
impl RefUnwindSafe for HttpRetryMethodPolicy
impl Send for HttpRetryMethodPolicy
impl Sync for HttpRetryMethodPolicy
impl Unpin for HttpRetryMethodPolicy
impl UnsafeUnpin for HttpRetryMethodPolicy
impl UnwindSafe for HttpRetryMethodPolicy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.