pub struct MetricsSnapshot { /* private fields */ }Expand description
Allocation-free, immutable point-in-time copy of all process metrics.
Implementations§
Source§impl MetricsSnapshot
impl MetricsSnapshot
pub fn requests(&self, outcome: StageOutcome) -> u64
pub fn stage_latency(&self, stage: Stage) -> &[u64; 11]
pub fn capacity_accepted(&self, dimension: Option<CapacityDimension>) -> u64
pub fn capacity_rejected(&self, dimension: Option<CapacityDimension>) -> u64
pub fn capacity_used(&self, dimension: Option<CapacityDimension>) -> u64
pub fn database(&self, disposition: DatabaseDisposition) -> u64
pub fn outbound(&self, result: OutboundResult) -> u64
pub const fn logger_dropped(&self) -> u64
pub const fn logger_output_failed(&self) -> u64
pub fn lifecycle(&self) -> LifecycleState
pub fn health(&self) -> Health
pub const fn ready(&self) -> bool
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 (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 MetricsSnapshot
Source§impl Debug for MetricsSnapshot
impl Debug for MetricsSnapshot
impl Eq for MetricsSnapshot
Source§impl PartialEq for MetricsSnapshot
impl PartialEq 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