Struct quinn_proto::UdpStats
source · #[non_exhaustive]pub struct UdpStats {
pub datagrams: u64,
pub bytes: u64,
pub transmits: 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
transmits: u64
The amount of transmit calls which have been performed
This can mismatch the amount of datagrams in case GSO is utilized for transmitting data.
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