#[non_exhaustive]pub struct UdpStats {
pub datagrams: u64,
pub bytes: u64,
pub ios: u64,
}Expand description
noq_proto types that are used in the public iroh API.
Statistics about UDP datagrams transmitted or received on a connection
All QUIC packets are carried by UDP datagrams. Hence, these statistics cover all traffic 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: u64The amount of UDP datagrams observed
bytes: u64The total amount of bytes which have been transferred inside UDP datagrams
ios: u64The 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
impl Eq for UdpStats
impl StructuralPartialEq for UdpStats
Auto Trait Implementations§
impl Freeze for UdpStats
impl RefUnwindSafe for UdpStats
impl Send for UdpStats
impl Sync for UdpStats
impl Unpin for UdpStats
impl UnsafeUnpin for UdpStats
impl UnwindSafe for UdpStats
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.