Enum netlink_packet_route::tc::TcActionOption
source · #[non_exhaustive]pub enum TcActionOption {
Mirror(TcActionMirrorOption),
Nat(TcActionNatOption),
Other(DefaultNla),
}
Expand description
TcActionOption
is a netlink message attribute that describes an option
of a tc-actions action.
This enum is non-exhaustive as new action types may be added to the kernel at any time. Only a small subset of possible actions are currently supported.
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.
Mirror(TcActionMirrorOption)
Mirror options.
These options can be used to mirror (copy) or redirect frames / packets to another network interface.
Nat(TcActionNatOption)
NAT options.
These options type can be used to perform network address translation.
Other(DefaultNla)
Other action types not yet supported by this library.
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
impl Eq for TcActionOption
impl StructuralPartialEq for TcActionOption
Auto Trait Implementations§
impl Freeze for TcActionOption
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
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
)