Enum netlink_packet_route::tc::TcActionOption
source · #[non_exhaustive]pub enum TcActionOption {
Mirror(TcActionMirrorOption),
Nat(TcActionNatOption),
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.
Trait Implementations§
source§impl Clone for TcActionOption
impl Clone for TcActionOption
source§fn clone(&self) -> TcActionOption
fn clone(&self) -> TcActionOption
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 TcActionOption
impl Debug for TcActionOption
source§impl Nla for TcActionOption
impl Nla for TcActionOption
source§impl<'a, T, S> ParseableParametrized<NlaBuffer<&'a T>, S> for TcActionOption
impl<'a, T, S> ParseableParametrized<NlaBuffer<&'a T>, S> for TcActionOption
source§fn parse_with_param(
buf: &NlaBuffer<&'a T>,
kind: S
) -> Result<Self, DecodeError>
fn parse_with_param( buf: &NlaBuffer<&'a T>, kind: S ) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl PartialEq for TcActionOption
impl PartialEq for TcActionOption
source§fn eq(&self, other: &TcActionOption) -> bool
fn eq(&self, other: &TcActionOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TcActionOption
impl StructuralEq for TcActionOption
impl StructuralPartialEq for TcActionOption
Auto Trait Implementations§
impl RefUnwindSafe for TcActionOption
impl Send for TcActionOption
impl Sync for TcActionOption
impl Unpin for TcActionOption
impl UnwindSafe for TcActionOption
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