pub struct PacketStats {
pub total_sent: u64,
pub total_received: u64,
pub total_dummy: u64,
pub bytes_sent: u64,
pub bytes_received: u64,
pub avg_packet_size: f64,
}Expand description
Packet statistics for analysis
Fields§
§total_sent: u64§total_received: u64§total_dummy: u64§bytes_sent: u64§bytes_received: u64§avg_packet_size: f64Trait Implementations§
Source§impl Clone for PacketStats
impl Clone for PacketStats
Source§fn clone(&self) -> PacketStats
fn clone(&self) -> PacketStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PacketStats
impl Debug for PacketStats
Source§impl Default for PacketStats
impl Default for PacketStats
Source§fn default() -> PacketStats
fn default() -> PacketStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PacketStats
impl RefUnwindSafe for PacketStats
impl Send for PacketStats
impl Sync for PacketStats
impl Unpin for PacketStats
impl UnsafeUnpin for PacketStats
impl UnwindSafe for PacketStats
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