#[repr(u16)]pub enum TunnelType {
Show 23 variants
Reserved = 0,
L2tpv3OverIp = 1,
Gre = 2,
TransmitTunnelEndpoint = 3,
IpsecTunnelMode = 4,
IpInIpWithIpsecTransport = 5,
MplsInIpWithIpsecTransport = 6,
IpInIp = 7,
Vxlan = 8,
Nvgre = 9,
Mpls = 10,
MplsInGre = 11,
VxlanGpe = 12,
MplsInUdp = 13,
Ipv6Tunnel = 14,
SrPolicy = 15,
Bare = 16,
SrTunnel = 17,
CloudSecurity = 18,
Geneve = 19,
AnyEncapsulation = 20,
GtpTunnel = 21,
DpsTunnel = 22,
}Expand description
BGP Tunnel Encapsulation Types as defined in RFC 9012 and IANA registry
Variants§
Reserved = 0
L2tpv3OverIp = 1
L2TPv3 over IP
Gre = 2
GRE
TransmitTunnelEndpoint = 3
Transmit tunnel endpoint (DEPRECATED)
IpsecTunnelMode = 4
IPsec in Tunnel-mode (DEPRECATED)
IpInIpWithIpsecTransport = 5
IP in IP tunnel with IPsec Transport Mode
MplsInIpWithIpsecTransport = 6
MPLS-in-IP tunnel with IPsec Transport Mode
IpInIp = 7
IP in IP
Vxlan = 8
VXLAN Encapsulation
Nvgre = 9
NVGRE Encapsulation
Mpls = 10
MPLS Encapsulation
MplsInGre = 11
MPLS in GRE Encapsulation
VxlanGpe = 12
VXLAN GPE Encapsulation
MplsInUdp = 13
MPLS in UDP Encapsulation
Ipv6Tunnel = 14
IPv6 Tunnel
SrPolicy = 15
SR Policy
Bare = 16
Bare
SrTunnel = 17
SR Tunnel (DEPRECATED)
CloudSecurity = 18
Cloud Security
Geneve = 19
Geneve Encapsulation
AnyEncapsulation = 20
Any Encapsulation
GtpTunnel = 21
GTP Tunnel Type
DpsTunnel = 22
Dynamic Path Selection (DPS) Tunnel Encapsulation
Trait Implementations§
Source§impl Clone for TunnelType
impl Clone for TunnelType
Source§fn clone(&self) -> TunnelType
fn clone(&self) -> TunnelType
Returns a duplicate 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 TunnelType
impl Debug for TunnelType
Source§impl From<TunnelType> for u16
impl From<TunnelType> for u16
Source§fn from(enum_value: TunnelType) -> Self
fn from(enum_value: TunnelType) -> Self
Converts to this type from the input type.
Source§impl From<u16> for TunnelType
impl From<u16> for TunnelType
Source§impl FromPrimitive for TunnelType
impl FromPrimitive for TunnelType
Source§impl Hash for TunnelType
impl Hash for TunnelType
Source§impl PartialEq for TunnelType
impl PartialEq for TunnelType
impl Copy for TunnelType
impl Eq for TunnelType
impl StructuralPartialEq for TunnelType
Auto Trait Implementations§
impl Freeze for TunnelType
impl RefUnwindSafe for TunnelType
impl Send for TunnelType
impl Sync for TunnelType
impl Unpin for TunnelType
impl UnwindSafe for TunnelType
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more