#[non_exhaustive]pub struct EdgeMetrics { /* private fields */ }Expand description
Per edge metrics aggregated by fixed and dynamic collectors.
Implementations§
Source§impl EdgeMetrics
impl EdgeMetrics
Sourcepub const fn queue_depth(&self) -> &u32
pub const fn queue_depth(&self) -> &u32
Returns the current queue depth for the edge.
Sourcepub fn set_queue_depth(&mut self, v: u32)
pub fn set_queue_depth(&mut self, v: u32)
Sets the current queue depth for the edge.
Sourcepub fn inc_queue_depth(&mut self, delta: u32)
pub fn inc_queue_depth(&mut self, delta: u32)
Increment queue depth by delta (saturating).
Sourcepub fn dec_queue_depth(&mut self, delta: u32)
pub fn dec_queue_depth(&mut self, delta: u32)
Decrement queue depth by delta (saturating at zero).
Sourcepub fn merge_from(&mut self, other: &Self)
pub fn merge_from(&mut self, other: &Self)
Merge another EdgeMetrics into self. For queue depth we follow the
last-writer-wins semantics used by higher-level merge logic.
Trait Implementations§
Source§impl Clone for EdgeMetrics
impl Clone for EdgeMetrics
Source§fn clone(&self) -> EdgeMetrics
fn clone(&self) -> EdgeMetrics
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 EdgeMetrics
impl Debug for EdgeMetrics
Source§impl Default for EdgeMetrics
impl Default for EdgeMetrics
impl Copy for EdgeMetrics
Auto Trait Implementations§
impl Freeze for EdgeMetrics
impl RefUnwindSafe for EdgeMetrics
impl Send for EdgeMetrics
impl Sync for EdgeMetrics
impl Unpin for EdgeMetrics
impl UnsafeUnpin for EdgeMetrics
impl UnwindSafe for EdgeMetrics
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