#[non_exhaustive]pub struct Stats {
pub shards: Vec<ShardStats>,
pub blocking_threads: usize,
pub blocking_queue_depth: usize,
pub off_shard_errors: ErrorCounts,
pub receive_buffers_missing: u64,
}Expand description
A snapshot of the runtime’s counters: stats().
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.shards: Vec<ShardStats>Every shard alive: the workers first, by their place in their
runtime, then the shards of threads that run block_on.
blocking_threads: usizeThreads of the blocking pools alive now, at work or idle.
blocking_queue_depth: usizeJobs waiting in the blocking pools’ queues for a thread to take them.
off_shard_errors: ErrorCountsErrors of IO run on threads that run no shard: a handle polled
outside nuclei’s block_on and its tasks, or a completion delivered
while its shard was not running.
receive_buffers_missing: u64Shards that started without the io_uring receive buffers their configuration asked for, because the system had no memory for them (most often the locked-memory limit); their reads use the pool’s buffers instead.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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