pub struct AnnounceEgressMetricsSnapshot {
pub outcomes: AnnounceEgressCounts,
pub enqueued_by_interface_kind: EgressInterfaceKindCounts,
pub enqueued_bytes_by_origin: AnnounceOriginCounts,
pub pacer_queue_depth: u32,
pub interfaces: Vec<InterfaceAnnounceEgressMetricsSnapshot>,
}Fields§
§outcomes: AnnounceEgressCounts§enqueued_by_interface_kind: EgressInterfaceKindCounts§enqueued_bytes_by_origin: AnnounceOriginCounts§pacer_queue_depth: u32§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 reset_pacer_depths(&mut self)
pub fn add_pacer_depth(&mut self, interface: InterfaceId, depth: usize)
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