Struct FrameEventsMetrics
pub struct FrameEventsMetrics {
pub accepted: u64,
pub rejected: u64,
pub expired: u64,
pub pending_high_water_mark: usize,
}Expand description
Frame-event activity since construction or the last metrics reset.
Counters saturate at u64::MAX. Clearing events does not reset metrics or
count as overflow/expiration.
Fields§
§accepted: u64Sends accepted into the pending buffer.
rejected: u64Sends rejected because the pending buffer was full (including capacity zero).
expired: u64Visible events discarded by advancing to another frame.
Reads do not remove events, so this includes events seen by borrowed listeners. Events removed by a drain or clear are excluded.
pending_high_water_mark: usizeLargest pending length, including the pending length at the last reset.
Trait Implementations§
§impl Clone for FrameEventsMetrics
impl Clone for FrameEventsMetrics
§fn clone(&self) -> FrameEventsMetrics
fn clone(&self) -> FrameEventsMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for FrameEventsMetrics
impl Debug for FrameEventsMetrics
§impl Default for FrameEventsMetrics
impl Default for FrameEventsMetrics
§fn default() -> FrameEventsMetrics
fn default() -> FrameEventsMetrics
Returns the “default value” for a type. Read more
§impl PartialEq for FrameEventsMetrics
impl PartialEq for FrameEventsMetrics
impl Copy for FrameEventsMetrics
impl Eq for FrameEventsMetrics
impl StructuralPartialEq for FrameEventsMetrics
Auto Trait Implementations§
impl Freeze for FrameEventsMetrics
impl RefUnwindSafe for FrameEventsMetrics
impl Send for FrameEventsMetrics
impl Sync for FrameEventsMetrics
impl Unpin for FrameEventsMetrics
impl UnwindSafe for FrameEventsMetrics
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