#[non_exhaustive]pub struct TcStatsBasic {
pub bytes: u64,
pub packets: u32,
}
Expand description
Byte/Packet throughput statistics
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.bytes: u64
number of seen bytes
packets: u32
number of seen packets
Trait Implementations§
Source§impl Clone for TcStatsBasic
impl Clone for TcStatsBasic
Source§fn clone(&self) -> TcStatsBasic
fn clone(&self) -> TcStatsBasic
Returns a copy 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 TcStatsBasic
impl Debug for TcStatsBasic
Source§impl Default for TcStatsBasic
impl Default for TcStatsBasic
Source§fn default() -> TcStatsBasic
fn default() -> TcStatsBasic
Returns the “default value” for a type. Read more
Source§impl Emitable for TcStatsBasic
impl Emitable for TcStatsBasic
Source§impl<T: AsRef<[u8]>> Parseable<TcStatsBasicBuffer<T>> for TcStatsBasic
impl<T: AsRef<[u8]>> Parseable<TcStatsBasicBuffer<T>> for TcStatsBasic
Source§impl PartialEq for TcStatsBasic
impl PartialEq for TcStatsBasic
impl Copy for TcStatsBasic
impl Eq for TcStatsBasic
impl StructuralPartialEq for TcStatsBasic
Auto Trait Implementations§
impl Freeze for TcStatsBasic
impl RefUnwindSafe for TcStatsBasic
impl Send for TcStatsBasic
impl Sync for TcStatsBasic
impl Unpin for TcStatsBasic
impl UnwindSafe for TcStatsBasic
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)