pub struct MailboxStats {
pub enqueued: u64,
pub dequeued: u64,
pub rejected: u64,
pub rejected_byte_limit: u64,
pub dropped_newest: u64,
pub dropped_oldest: u64,
pub queued_messages: usize,
pub queued_bytes: usize,
}Expand description
Per-mailbox counters (Relaxed atomics would over-synchronize a hot inbox). Updated only while the mailbox mutex is held — same critical section as enqueue / park — then copied out for host scrapes.
Fields§
§enqueued: u64§dequeued: u64§rejected: u64Total refusals under super::OverflowPolicy::Reject, whichever
bound was hit.
rejected_byte_limit: u64Subset of Self::rejected caused by the byte budget rather than
the hop count. rejected - rejected_byte_limit is therefore the
hop-count share — the two have different remedies, so an operator
needs to tell them apart.
dropped_newest: u64§dropped_oldest: u64§queued_messages: usizeHops queued right now (occupancy, not a counter).
queued_bytes: usizeBytes charged to the queued hops right now. Compare against the
configured super::MailboxBytes to see how close an inbox is to
its budget before it starts refusing.
Trait Implementations§
Source§impl Clone for MailboxStats
impl Clone for MailboxStats
Source§fn clone(&self) -> MailboxStats
fn clone(&self) -> MailboxStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MailboxStats
Source§impl Debug for MailboxStats
impl Debug for MailboxStats
Source§impl Default for MailboxStats
impl Default for MailboxStats
Source§fn default() -> MailboxStats
fn default() -> MailboxStats
Returns the “default value” for a type. Read more
impl Eq for MailboxStats
Source§impl PartialEq for MailboxStats
impl PartialEq for MailboxStats
impl StructuralPartialEq for MailboxStats
Auto Trait Implementations§
impl Freeze for MailboxStats
impl RefUnwindSafe for MailboxStats
impl Send for MailboxStats
impl Sync for MailboxStats
impl Unpin for MailboxStats
impl UnsafeUnpin for MailboxStats
impl UnwindSafe for MailboxStats
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