Enum netlink_packet_route::tc::TcAttribute
source · #[non_exhaustive]pub enum TcAttribute {
Kind(String),
Options(Vec<TcOption>),
Stats(TcStats),
Xstats(TcXstats),
Rate(Vec<u8>),
Fcnt(Vec<u8>),
Stats2(Vec<TcStats2>),
Stab(Vec<u8>),
Chain(u32),
HwOffload(u8),
DumpInvisible(bool),
Other(DefaultNla),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Kind(String)
Name of queueing discipline
Options(Vec<TcOption>)
Options follow
Stats(TcStats)
Statistics
Xstats(TcXstats)
Module-specific statistics
Rate(Vec<u8>)
Rate limit
Fcnt(Vec<u8>)
Stats2(Vec<TcStats2>)
Stab(Vec<u8>)
Chain(u32)
HwOffload(u8)
DumpInvisible(bool)
Other(DefaultNla)
Trait Implementations§
source§impl Clone for TcAttribute
impl Clone for TcAttribute
source§fn clone(&self) -> TcAttribute
fn clone(&self) -> TcAttribute
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 TcAttribute
impl Debug for TcAttribute
source§impl Nla for TcAttribute
impl Nla for TcAttribute
source§impl<'a, T: AsRef<[u8]> + ?Sized> ParseableParametrized<NlaBuffer<&'a T>, &str> for TcAttribute
impl<'a, T: AsRef<[u8]> + ?Sized> ParseableParametrized<NlaBuffer<&'a T>, &str> for TcAttribute
source§fn parse_with_param(
buf: &NlaBuffer<&'a T>,
kind: &str
) -> Result<Self, DecodeError>
fn parse_with_param( buf: &NlaBuffer<&'a T>, kind: &str ) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl PartialEq for TcAttribute
impl PartialEq for TcAttribute
source§fn eq(&self, other: &TcAttribute) -> bool
fn eq(&self, other: &TcAttribute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TcAttribute
impl StructuralPartialEq for TcAttribute
Auto Trait Implementations§
impl RefUnwindSafe for TcAttribute
impl Send for TcAttribute
impl Sync for TcAttribute
impl Unpin for TcAttribute
impl UnwindSafe for TcAttribute
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