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
impl Eq for TcAttribute
impl StructuralPartialEq for TcAttribute
Auto Trait Implementations§
impl Freeze for TcAttribute
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
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
)