pub struct FileTreeWorkerStats {
pub requests_enqueued: u64,
pub requests_coalesced: u64,
pub directory_reads: u64,
pub watch_polls: u64,
pub responses: u64,
pub stale_responses: u64,
pub mutations: u64,
pub request_queue_depth: usize,
pub request_queue_max_depth: usize,
pub active_directory_requests: usize,
pub watched_directories: usize,
}Expand description
Point-in-time, monotonically accumulated worker metrics.
Counters saturate only by normal atomic integer wraparound; they are diagnostics, not synchronization. Depths are item counts sampled with relaxed ordering and may change immediately after the snapshot.
§Examples
use ailloli_ui_fs_runtime::FileTreeWorkerStats;
let stats = FileTreeWorkerStats::default();
assert_eq!(stats.requests_enqueued, 0);
assert_eq!(stats.request_queue_depth, 0);Fields§
§requests_enqueued: u64Successfully enqueued requests since runtime creation.
requests_coalesced: u64Equivalent directory, watch, or mutation requests not enqueued again.
directory_reads: u64Directory reads begun by the worker.
watch_polls: u64Native or explicit provider watch polls begun by the worker.
responses: u64Responses offered to the UI inbox, including wake-failed enqueue success.
stale_responses: u64Directory responses rejected by the store as stale.
mutations: u64Mutation calls begun by the worker.
request_queue_depth: usizeRequests reserved or queued but not yet received by the worker.
request_queue_max_depth: usizeMaximum observed request depth since runtime creation.
active_directory_requests: usizeDistinct directory nodes with an owned current request.
watched_directories: usizeSuccessfully configured provider watch URIs tracked by the worker.
Trait Implementations§
Source§impl Clone for FileTreeWorkerStats
impl Clone for FileTreeWorkerStats
Source§fn clone(&self) -> FileTreeWorkerStats
fn clone(&self) -> FileTreeWorkerStats
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FileTreeWorkerStats
impl Debug for FileTreeWorkerStats
Source§impl Default for FileTreeWorkerStats
impl Default for FileTreeWorkerStats
Source§fn default() -> FileTreeWorkerStats
fn default() -> FileTreeWorkerStats
Source§impl PartialEq for FileTreeWorkerStats
impl PartialEq for FileTreeWorkerStats
impl Copy for FileTreeWorkerStats
impl Eq for FileTreeWorkerStats
impl StructuralPartialEq for FileTreeWorkerStats
Auto Trait Implementations§
impl Freeze for FileTreeWorkerStats
impl RefUnwindSafe for FileTreeWorkerStats
impl Send for FileTreeWorkerStats
impl Sync for FileTreeWorkerStats
impl Unpin for FileTreeWorkerStats
impl UnwindSafe for FileTreeWorkerStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.