Struct netlink_packet_route::tc::TcStatsBasic
source · #[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§fn parse(buf: &TcStatsBasicBuffer<T>) -> Result<Self, DecodeError>
fn parse(buf: &TcStatsBasicBuffer<T>) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl PartialEq for TcStatsBasic
impl PartialEq for TcStatsBasic
source§fn eq(&self, other: &TcStatsBasic) -> bool
fn eq(&self, other: &TcStatsBasic) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TcStatsBasic
impl Eq for TcStatsBasic
impl StructuralPartialEq for TcStatsBasic
Auto Trait Implementations§
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