pub struct MailStats {
pub spilled: u64,
pub panics: u64,
pub pending: u64,
pub peak: u64,
pub soft_cap: u64,
}Expand description
邮箱运行统计(mail_stats)。
0.5.0 加两深度读数:pending(当前积压)与 peak(历史峰值)。
口径 —— 不丢是默认,堵不堵要看得见:spilled 只在到软顶时才涨。
Fields§
§spilled: u64软顶触发的丢弃累计(默认无界不丢 → 常态应为 0)。
panics: u64handler panic 累计。
pending: u64当前邮箱深度(发送 +1 / 工人取走 −1)。
peak: u64历史峰值(只涨不跌)。
soft_cap: u64该插件的软顶(消费侧判“溢满“要吃它自己的线,不能拿缺省去比)。
Trait Implementations§
impl Copy for MailStats
impl Eq for MailStats
impl StructuralPartialEq for MailStats
Auto Trait Implementations§
impl Freeze for MailStats
impl RefUnwindSafe for MailStats
impl Send for MailStats
impl Sync for MailStats
impl Unpin for MailStats
impl UnsafeUnpin for MailStats
impl UnwindSafe for MailStats
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