pub struct AnnounceEgressMetricsSnapshot {
pub outcomes: AnnounceEgressCounts,
pub backpressure: AnnounceBackpressureCounts,
pub enqueued_by_interface_kind: EgressInterfaceKindCounts,
pub enqueued_bytes_by_origin: AnnounceOriginCounts,
pub pacer_queue_depth: u32,
pub pacer_deferred_depth: u32,
pub pacer_oldest_deferred_age_ms: u64,
pub interfaces: Vec<InterfaceAnnounceEgressMetricsSnapshot>,
}Fields§
§outcomes: AnnounceEgressCounts§backpressure: AnnounceBackpressureCounts§enqueued_by_interface_kind: EgressInterfaceKindCounts§enqueued_bytes_by_origin: AnnounceOriginCounts§pacer_queue_depth: u32§pacer_deferred_depth: u32§pacer_oldest_deferred_age_ms: u64§interfaces: Vec<InterfaceAnnounceEgressMetricsSnapshot>Implementations§
Source§impl AnnounceEgressMetricsSnapshot
impl AnnounceEgressMetricsSnapshot
pub fn record( &mut self, origin: AnnounceOrigin, interface: InterfaceId, outcome: AnnounceEgressOutcome, bytes: usize, )
pub fn register_interface(&mut self, interface: InterfaceId)
pub fn record_backpressure( &mut self, origin: AnnounceOrigin, interface: InterfaceId, event: AnnounceBackpressureEvent, )
pub fn reset_pacer_gauges(&mut self)
pub fn add_pacer_gauges( &mut self, interface: InterfaceId, depth: usize, deferred_depth: usize, oldest_deferred_age_ms: u64, )
Trait Implementations§
Source§impl Clone for AnnounceEgressMetricsSnapshot
impl Clone for AnnounceEgressMetricsSnapshot
Source§fn clone(&self) -> AnnounceEgressMetricsSnapshot
fn clone(&self) -> AnnounceEgressMetricsSnapshot
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 moreSource§impl Default for AnnounceEgressMetricsSnapshot
impl Default for AnnounceEgressMetricsSnapshot
Source§fn default() -> AnnounceEgressMetricsSnapshot
fn default() -> AnnounceEgressMetricsSnapshot
Returns the “default value” for a type. Read more
impl Eq for AnnounceEgressMetricsSnapshot
impl StructuralPartialEq for AnnounceEgressMetricsSnapshot
Auto Trait Implementations§
impl Freeze for AnnounceEgressMetricsSnapshot
impl RefUnwindSafe for AnnounceEgressMetricsSnapshot
impl Send for AnnounceEgressMetricsSnapshot
impl Sync for AnnounceEgressMetricsSnapshot
impl Unpin for AnnounceEgressMetricsSnapshot
impl UnsafeUnpin for AnnounceEgressMetricsSnapshot
impl UnwindSafe for AnnounceEgressMetricsSnapshot
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