pub struct MethodPolicy { /* private fields */ }Expand description
Policy controlling which HTTP methods are eligible for retry.
Implementations§
Source§impl MethodPolicy
impl MethodPolicy
Sourcepub fn add_method(&mut self, method: Method)
pub fn add_method(&mut self, method: Method)
Add a method to the retryable set.
Sourcepub fn is_retryable(&self, method: &Method) -> bool
pub fn is_retryable(&self, method: &Method) -> bool
Returns true if the method is retryable.
Trait Implementations§
Source§impl Clone for MethodPolicy
impl Clone for MethodPolicy
Source§impl Debug for MethodPolicy
impl Debug for MethodPolicy
Auto Trait Implementations§
impl Freeze for MethodPolicy
impl RefUnwindSafe for MethodPolicy
impl Send for MethodPolicy
impl Sync for MethodPolicy
impl Unpin for MethodPolicy
impl UnsafeUnpin for MethodPolicy
impl UnwindSafe for MethodPolicy
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