pub struct RuntimeInboxStats {
pub enqueued: u64,
pub drained: u64,
pub coalesced: 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
Read-only instrumentation snapshot for a runtime mailbox.
Counts are cumulative wrapping atomic counters and fields are loaded
independently, so concurrent snapshots are not transactional. For action
messages, queue publication currently precedes depth accounting; a consumer
racing in that interval can make current_depth/max_depth wrap and they
should therefore be treated as diagnostics, not protocol state.
§Examples
use ailloli_ui_runtime::app::RuntimeInboxStats;
assert_eq!(RuntimeInboxStats::default().coalesced, 0);Fields§
§enqueued: u64Successfully queued non-coalesced messages.
drained: u64Messages applied to a runtime.
coalesced: u64Duplicate outstanding redraw requests that did not add a message.
overflow: u64Sends rejected because the bounded queue was full.
disconnected: u64First observed channel disconnection (zero or one).
wake_calls: u64Wake callback invocations.
wake_failures: u64Wake callback errors.
current_depth: usizeBest-effort queued/pending depth; see the type-level concurrency caveat.
max_depth: usizeMaximum best-effort observed depth.
Trait Implementations§
Source§impl Clone for RuntimeInboxStats
impl Clone for RuntimeInboxStats
Source§fn clone(&self) -> RuntimeInboxStats
fn clone(&self) -> RuntimeInboxStats
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RuntimeInboxStats
impl Debug for RuntimeInboxStats
Source§impl Default for RuntimeInboxStats
impl Default for RuntimeInboxStats
Source§fn default() -> RuntimeInboxStats
fn default() -> RuntimeInboxStats
Source§impl PartialEq for RuntimeInboxStats
impl PartialEq for RuntimeInboxStats
impl Copy for RuntimeInboxStats
impl Eq for RuntimeInboxStats
impl StructuralPartialEq for RuntimeInboxStats
Auto Trait Implementations§
impl Freeze for RuntimeInboxStats
impl RefUnwindSafe for RuntimeInboxStats
impl Send for RuntimeInboxStats
impl Sync for RuntimeInboxStats
impl Unpin for RuntimeInboxStats
impl UnwindSafe for RuntimeInboxStats
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.