pub struct RuntimeStats {
pub state: RuntimeState,
pub event_queue_len: usize,
pub work_queue_len: usize,
pub work_dropped: usize,
pub tasks_executed: u64,
pub tasks_failed: u64,
pub active_timers: usize,
pub timers_dropped: u64,
}Expand description
Runtime execution statistics.
Provides insight into runtime operation for monitoring and debugging.
Fields§
§state: RuntimeStateCurrent runtime state.
event_queue_len: usizeNumber of events in the priority queue.
work_queue_len: usizeNumber of tasks in the work queue.
work_dropped: usizeNumber of tasks dropped due to overflow.
tasks_executed: u64Total tasks successfully executed.
tasks_failed: u64Total tasks that failed (error or panic).
active_timers: usizeNumber of active (pending) timers.
timers_dropped: u64Number of timers dropped due to capacity limit.
Trait Implementations§
Source§impl Clone for RuntimeStats
impl Clone for RuntimeStats
Source§fn clone(&self) -> RuntimeStats
fn clone(&self) -> RuntimeStats
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 moreSource§impl Debug for RuntimeStats
impl Debug for RuntimeStats
Source§impl Default for RuntimeStats
impl Default for RuntimeStats
Source§fn default() -> RuntimeStats
fn default() -> RuntimeStats
Returns the “default value” for a type. Read more
impl Copy for RuntimeStats
Auto Trait Implementations§
impl Freeze for RuntimeStats
impl RefUnwindSafe for RuntimeStats
impl Send for RuntimeStats
impl Sync for RuntimeStats
impl Unpin for RuntimeStats
impl UnsafeUnpin for RuntimeStats
impl UnwindSafe for RuntimeStats
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