pub struct RetryStats { /* private fields */ }Implementations§
Source§impl RetryStats
impl RetryStats
pub fn record_retry(&self, error: &Aria2Error)
pub fn total(&self) -> u32
pub fn timeouts(&self) -> u32
pub fn server_errors(&self) -> u32
pub fn network_failures(&self) -> u32
pub fn reset(&self)
Trait Implementations§
Source§impl Debug for RetryStats
impl Debug for RetryStats
Source§impl Default for RetryStats
impl Default for RetryStats
Source§fn default() -> RetryStats
fn default() -> RetryStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for RetryStats
impl RefUnwindSafe for RetryStats
impl Send for RetryStats
impl Sync for RetryStats
impl Unpin for RetryStats
impl UnsafeUnpin for RetryStats
impl UnwindSafe for RetryStats
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