pub struct AutoEncapVariants {
pub vlan: bool,
pub mpls: bool,
pub vxlan: bool,
pub gtp_u: bool,
pub gre: bool,
}Available on crate feature
extractors only.Expand description
Toggle which decap variants AutoDetectEncap tries.
Order is fixed: plain → VLAN → MPLS → VXLAN → GTP-U → GRE. The first match wins.
Fields§
§vlan: boolTry StripVlan(...).
mpls: boolTry StripMpls(...).
vxlan: boolTry InnerVxlan::new(...) (UDP/4789).
gtp_u: boolTry InnerGtpU::new(...) (UDP/2152).
gre: boolTry InnerGre::new(...) (IP proto 47).
Implementations§
Trait Implementations§
Source§impl Clone for AutoEncapVariants
impl Clone for AutoEncapVariants
Source§fn clone(&self) -> AutoEncapVariants
fn clone(&self) -> AutoEncapVariants
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AutoEncapVariants
impl Debug for AutoEncapVariants
Source§impl Default for AutoEncapVariants
impl Default for AutoEncapVariants
impl Copy for AutoEncapVariants
Auto Trait Implementations§
impl Freeze for AutoEncapVariants
impl RefUnwindSafe for AutoEncapVariants
impl Send for AutoEncapVariants
impl Sync for AutoEncapVariants
impl Unpin for AutoEncapVariants
impl UnsafeUnpin for AutoEncapVariants
impl UnwindSafe for AutoEncapVariants
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