pub struct PeerReconnectionStats {
pub attempts: u32,
pub max_attempts: u32,
pub disconnected_duration: Duration,
pub next_attempt_delay: Duration,
}Expand description
Statistics for a peer’s reconnection state
Fields§
§attempts: u32Number of attempts made
max_attempts: u32Maximum allowed attempts
disconnected_duration: DurationHow long since the peer disconnected
next_attempt_delay: DurationComputed delay for the next reconnection attempt (ZERO if ready, MAX if exhausted).
This is the configured delay (flat or exponential), not the remaining wait time.
Use get_status() for remaining-time semantics.
Trait Implementations§
Source§impl Clone for PeerReconnectionStats
impl Clone for PeerReconnectionStats
Source§fn clone(&self) -> PeerReconnectionStats
fn clone(&self) -> PeerReconnectionStats
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 PeerReconnectionStats
impl RefUnwindSafe for PeerReconnectionStats
impl Send for PeerReconnectionStats
impl Sync for PeerReconnectionStats
impl Unpin for PeerReconnectionStats
impl UnsafeUnpin for PeerReconnectionStats
impl UnwindSafe for PeerReconnectionStats
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