pub struct ShutdownStatsAtomics { /* private fields */ }Expand description
Atomic counters backing ShutdownStats. Written by Executor,
readable via the handle returned by
Runtime::shutdown_stats.
Atomics are used (not Cell) so the user-facing handle can survive
Runtime::drop and be read on the same thread post-drop. All
updates use Relaxed ordering — the counters are observability,
not synchronization.
Implementations§
Source§impl ShutdownStatsAtomics
impl ShutdownStatsAtomics
Sourcepub fn snapshot(&self) -> ShutdownStats
pub fn snapshot(&self) -> ShutdownStats
Snapshot the current counter values into a plain
ShutdownStats. Loads are Relaxed — observability, not
synchronization.
Trait Implementations§
Source§impl Debug for ShutdownStatsAtomics
impl Debug for ShutdownStatsAtomics
Source§impl Default for ShutdownStatsAtomics
impl Default for ShutdownStatsAtomics
Source§fn default() -> ShutdownStatsAtomics
fn default() -> ShutdownStatsAtomics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ShutdownStatsAtomics
impl RefUnwindSafe for ShutdownStatsAtomics
impl Send for ShutdownStatsAtomics
impl Sync for ShutdownStatsAtomics
impl Unpin for ShutdownStatsAtomics
impl UnsafeUnpin for ShutdownStatsAtomics
impl UnwindSafe for ShutdownStatsAtomics
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