pub struct DefaultRetryPolicy {
pub max_retry_times: u32,
}
Expand description
默认重试机制,做多重试 10 次(加上最开始的 1 次,总计就是发送 11 次请求)。 两次重试之间休眠 10 秒
Fields§
§max_retry_times: u32
Trait Implementations§
Source§impl Clone for DefaultRetryPolicy
impl Clone for DefaultRetryPolicy
Source§fn clone(&self) -> DefaultRetryPolicy
fn clone(&self) -> DefaultRetryPolicy
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 DefaultRetryPolicy
impl Debug for DefaultRetryPolicy
Source§impl Default for DefaultRetryPolicy
impl Default for DefaultRetryPolicy
Source§impl RetryPolicy for DefaultRetryPolicy
impl RetryPolicy for DefaultRetryPolicy
impl Copy for DefaultRetryPolicy
Auto Trait Implementations§
impl Freeze for DefaultRetryPolicy
impl RefUnwindSafe for DefaultRetryPolicy
impl Send for DefaultRetryPolicy
impl Sync for DefaultRetryPolicy
impl Unpin for DefaultRetryPolicy
impl UnwindSafe for DefaultRetryPolicy
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