pub struct ReconnectStats {
pub total_attempts: u64,
pub total_successes: u64,
pub current_retry_count: u32,
pub consecutive_failures: u32,
}Available on non-WebAssembly only.
Expand description
Reconnection statistics.
Fields§
§total_attempts: u64Total connection attempts.
total_successes: u64Total successful connections.
current_retry_count: u32Current retry count.
consecutive_failures: u32Consecutive failure count.
Trait Implementations§
Source§impl Clone for ReconnectStats
impl Clone for ReconnectStats
Source§fn clone(&self) -> ReconnectStats
fn clone(&self) -> ReconnectStats
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 moreAuto Trait Implementations§
impl Freeze for ReconnectStats
impl RefUnwindSafe for ReconnectStats
impl Send for ReconnectStats
impl Sync for ReconnectStats
impl Unpin for ReconnectStats
impl UnwindSafe for ReconnectStats
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