pub struct UiInboxStats {
pub enqueued: u64,
pub drained: u64,
pub overflow: u64,
pub disconnected: u64,
pub wake_calls: u64,
pub wake_failures: u64,
pub current_depth: usize,
pub max_depth: usize,
}Expand description
Atomic instrumentation snapshot for a generic UI mailbox.
Counters are cumulative and use atomic wrapping addition at their integer
widths. A snapshot loads fields independently, so concurrent producers can
make it internally non-transactional. current_depth includes queued and
prefetched-pending messages; max_depth is its observed high-water mark.
§Examples
use ailloli_ui_runtime::app::UiInboxStats;
let stats = UiInboxStats::default();
assert_eq!((stats.enqueued, stats.current_depth, stats.max_depth), (0, 0, 0));Fields§
§enqueued: u64Successfully queued messages.
drained: u64Messages returned in successful or subsequently failed drain calls.
overflow: u64Nonblocking sends rejected because the queue was full.
disconnected: u64First observed channel disconnection (zero or one).
wake_calls: u64Host wake callback invocations.
wake_failures: u64Wake callback invocations returning an error.
current_depth: usizeQueued plus prefetched messages not yet delivered to a drain result.
max_depth: usizeMaximum observed current_depth.
Trait Implementations§
Source§impl Clone for UiInboxStats
impl Clone for UiInboxStats
Source§fn clone(&self) -> UiInboxStats
fn clone(&self) -> UiInboxStats
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UiInboxStats
impl Debug for UiInboxStats
Source§impl Default for UiInboxStats
impl Default for UiInboxStats
Source§fn default() -> UiInboxStats
fn default() -> UiInboxStats
Source§impl PartialEq for UiInboxStats
impl PartialEq for UiInboxStats
impl Copy for UiInboxStats
impl Eq for UiInboxStats
impl StructuralPartialEq for UiInboxStats
Auto Trait Implementations§
impl Freeze for UiInboxStats
impl RefUnwindSafe for UiInboxStats
impl Send for UiInboxStats
impl Sync for UiInboxStats
impl Unpin for UiInboxStats
impl UnwindSafe for UiInboxStats
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.Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.