pub struct ConnectionStatsReader { /* private fields */ }Expand description
A cloneable read handle for the live connection stats of a Reconnect loop.
Obtained via Reconnect::stats. stats returns None while the loop is
between connections (reconnecting), and Some snapshot while a session is established.
Implementations§
Source§impl ConnectionStatsReader
impl ConnectionStatsReader
Sourcepub fn stats(&self) -> Option<ConnectionStats>
pub fn stats(&self) -> Option<ConnectionStats>
Snapshot the current connection’s stats, or None if not currently connected.
Trait Implementations§
Source§impl Clone for ConnectionStatsReader
impl Clone for ConnectionStatsReader
Source§fn clone(&self) -> ConnectionStatsReader
fn clone(&self) -> ConnectionStatsReader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConnectionStatsReader
impl RefUnwindSafe for ConnectionStatsReader
impl Send for ConnectionStatsReader
impl Sync for ConnectionStatsReader
impl Unpin for ConnectionStatsReader
impl UnsafeUnpin for ConnectionStatsReader
impl UnwindSafe for ConnectionStatsReader
Blanket Implementations§
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