pub struct SchedulerStreamStats {
pub packets_in: AtomicU64,
pub packets_out: AtomicU64,
pub packets_dropped: AtomicU64,
pub bytes_in: AtomicU64,
pub bytes_out: AtomicU64,
/* private fields */
}Expand description
Per-stream statistics for fairness monitoring
Fields§
§packets_in: AtomicU64Packets received
packets_out: AtomicU64Packets forwarded
packets_dropped: AtomicU64Packets dropped (fairness, TTL, etc.)
bytes_in: AtomicU64Bytes received
bytes_out: AtomicU64Bytes forwarded
Implementations§
Source§impl SchedulerStreamStats
impl SchedulerStreamStats
Sourcepub fn record_out(&self, bytes: u64)
pub fn record_out(&self, bytes: u64)
Record outgoing packet
Sourcepub fn record_drop(&self)
pub fn record_drop(&self)
Record dropped packet
Sourcepub fn get_packets_in(&self) -> u64
pub fn get_packets_in(&self) -> u64
Get packets in count
Sourcepub fn get_packets_out(&self) -> u64
pub fn get_packets_out(&self) -> u64
Get packets out count
Trait Implementations§
Source§impl Debug for SchedulerStreamStats
impl Debug for SchedulerStreamStats
Auto Trait Implementations§
impl !Freeze for SchedulerStreamStats
impl RefUnwindSafe for SchedulerStreamStats
impl Send for SchedulerStreamStats
impl Sync for SchedulerStreamStats
impl Unpin for SchedulerStreamStats
impl UnsafeUnpin for SchedulerStreamStats
impl UnwindSafe for SchedulerStreamStats
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