pub struct MetricsSnapshot {
pub published: u64,
pub consumed: u64,
pub overruns: u64,
pub backpressure_events: u64,
}Expand description
A point-in-time snapshot of metrics.
Fields§
§published: u64Total messages published.
consumed: u64Total messages consumed.
overruns: u64Total overruns detected.
backpressure_events: u64Total backpressure events.
Implementations§
Trait Implementations§
Source§impl Clone for MetricsSnapshot
impl Clone for MetricsSnapshot
Source§fn clone(&self) -> MetricsSnapshot
fn clone(&self) -> MetricsSnapshot
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 moreSource§impl Debug for MetricsSnapshot
impl Debug for MetricsSnapshot
Source§impl Default for MetricsSnapshot
impl Default for MetricsSnapshot
Source§fn default() -> MetricsSnapshot
fn default() -> MetricsSnapshot
Returns the “default value” for a type. Read more
Source§impl Display for MetricsSnapshot
impl Display for MetricsSnapshot
Source§impl PartialEq for MetricsSnapshot
impl PartialEq for MetricsSnapshot
impl Copy for MetricsSnapshot
impl Eq for MetricsSnapshot
impl StructuralPartialEq for MetricsSnapshot
Auto Trait Implementations§
impl Freeze for MetricsSnapshot
impl RefUnwindSafe for MetricsSnapshot
impl Send for MetricsSnapshot
impl Sync for MetricsSnapshot
impl Unpin for MetricsSnapshot
impl UnsafeUnpin for MetricsSnapshot
impl UnwindSafe for MetricsSnapshot
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