Struct kvarn_quinn_proto::UdpStats
source · #[non_exhaustive]pub struct UdpStats {
pub datagrams: u64,
pub bytes: u64,
pub ios: u64,
}
Expand description
Statistics about UDP datagrams transmitted or received on a connection
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.datagrams: u64
The amount of UDP datagrams observed
bytes: u64
The total amount of bytes which have been transferred inside UDP datagrams
ios: u64
The amount of I/O operations executed
Can be less than datagrams
when GSO, GRO, and/or batched system calls are in use.
Trait Implementations§
impl Copy for UdpStats
Auto Trait Implementations§
impl RefUnwindSafe for UdpStats
impl Send for UdpStats
impl Sync for UdpStats
impl Unpin for UdpStats
impl UnwindSafe for UdpStats
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