pub struct RuntimeMetrics {
pub processes_spawned: AtomicU64,
pub processes_completed: AtomicU64,
pub processes_failed: AtomicU64,
pub messages_sent: AtomicU64,
pub steals: AtomicU64,
pub reschedules: AtomicU64,
}Expand description
Runtime-wide counters (design notes §26). Every field is a plain
AtomicU64 bumped with Relaxed ordering: these are monitoring
counters, not synchronization primitives, so we don’t pay for anything
stronger than “eventually visible to a metrics scrape.”
Fields§
§processes_spawned: AtomicU64§processes_completed: AtomicU64§processes_failed: AtomicU64§messages_sent: AtomicU64§steals: AtomicU64§reschedules: AtomicU64Implementations§
Trait Implementations§
Source§impl Default for RuntimeMetrics
impl Default for RuntimeMetrics
Source§fn default() -> RuntimeMetrics
fn default() -> RuntimeMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for RuntimeMetrics
impl RefUnwindSafe for RuntimeMetrics
impl Send for RuntimeMetrics
impl Sync for RuntimeMetrics
impl Unpin for RuntimeMetrics
impl UnsafeUnpin for RuntimeMetrics
impl UnwindSafe for RuntimeMetrics
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