pub struct RetryMiddlewareWithStats { /* private fields */ }Expand description
带统计的重试中间件
Implementations§
Source§impl RetryMiddlewareWithStats
impl RetryMiddlewareWithStats
Sourcepub fn new(config: RetryConfig) -> Self
pub fn new(config: RetryConfig) -> Self
创建带统计的重试中间件
Sourcepub fn get_stats(&self) -> RetryStats
pub fn get_stats(&self) -> RetryStats
获取统计信息
Sourcepub fn reset_stats(&self)
pub fn reset_stats(&self)
重置统计信息
Auto Trait Implementations§
impl Freeze for RetryMiddlewareWithStats
impl !RefUnwindSafe for RetryMiddlewareWithStats
impl Send for RetryMiddlewareWithStats
impl Sync for RetryMiddlewareWithStats
impl Unpin for RetryMiddlewareWithStats
impl !UnwindSafe for RetryMiddlewareWithStats
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