pub struct HandshakeStats {
pub total_attempted: AtomicU64,
pub total_succeeded: AtomicU64,
pub total_failed: AtomicU64,
}Expand description
Live atomic counters tracking handshake outcomes.
Fields§
§total_attempted: AtomicU64Number of handshake attempts started (including those in progress).
total_succeeded: AtomicU64Number of handshakes that completed successfully.
total_failed: AtomicU64Number of handshakes that ended in an error.
Implementations§
Source§impl HandshakeStats
impl HandshakeStats
Sourcepub fn snapshot(&self) -> HandshakeStatsSnapshot
pub fn snapshot(&self) -> HandshakeStatsSnapshot
Take a consistent snapshot of the current counters.
Trait Implementations§
Source§impl Debug for HandshakeStats
impl Debug for HandshakeStats
Source§impl Default for HandshakeStats
impl Default for HandshakeStats
Source§fn default() -> HandshakeStats
fn default() -> HandshakeStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for HandshakeStats
impl RefUnwindSafe for HandshakeStats
impl Send for HandshakeStats
impl Sync for HandshakeStats
impl Unpin for HandshakeStats
impl UnsafeUnpin for HandshakeStats
impl UnwindSafe for HandshakeStats
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more