pub struct EventBusStats {
pub event_count: usize,
pub used_bytes: usize,
pub peak_bytes: usize,
pub evictions: u64,
pub rejections: u64,
pub max_bytes: usize,
}Expand description
Point-in-time pressure metrics for a process-local event bus.
Fields§
§event_count: usizeRetained event envelopes.
used_bytes: usizeEstimated bytes retained by the current snapshot.
peak_bytes: usizeHighest retained byte count observed by this bus.
evictions: u64Events evicted to maintain count or byte limits.
rejections: u64Individual events too large for the configured byte budget.
max_bytes: usizeAggregate configured byte budget.
Trait Implementations§
Source§impl Clone for EventBusStats
impl Clone for EventBusStats
Source§fn clone(&self) -> EventBusStats
fn clone(&self) -> EventBusStats
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 EventBusStats
Source§impl Debug for EventBusStats
impl Debug for EventBusStats
impl Eq for EventBusStats
Source§impl PartialEq for EventBusStats
impl PartialEq for EventBusStats
impl StructuralPartialEq for EventBusStats
Auto Trait Implementations§
impl Freeze for EventBusStats
impl RefUnwindSafe for EventBusStats
impl Send for EventBusStats
impl Sync for EventBusStats
impl Unpin for EventBusStats
impl UnsafeUnpin for EventBusStats
impl UnwindSafe for EventBusStats
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