Enum netlink_packet_route::tc::TcOption
source · #[non_exhaustive]pub enum TcOption {
FqCodel(TcQdiscFqCodelOption),
Ingress(TcQdiscIngressOption),
U32(TcFilterU32Option),
MatchAll(TcFilterMatchAllOption),
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.
FqCodel(TcQdiscFqCodelOption)
Ingress(TcQdiscIngressOption)
U32(TcFilterU32Option)
MatchAll(TcFilterMatchAllOption)
Other(DefaultNla)
Trait Implementations§
source§impl<'a, T> ParseableParametrized<NlaBuffer<&'a T>, &str> for TcOption
impl<'a, T> ParseableParametrized<NlaBuffer<&'a T>, &str> for TcOption
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 TcOption
impl PartialEq for TcOption
impl Eq for TcOption
impl StructuralPartialEq for TcOption
Auto Trait Implementations§
impl RefUnwindSafe for TcOption
impl Send for TcOption
impl Sync for TcOption
impl Unpin for TcOption
impl UnwindSafe for TcOption
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