#[non_exhaustive]pub enum InfoIpTunnel {
Show 23 variants
Link(u32),
Local(IpAddr),
Remote(IpAddr),
Ttl(u8),
Tos(u8),
EncapLimit(u8),
FlowInfo(u32),
Ipv6SitFlags(u16),
Ipv4Flags(u16),
Ipv6Flags(Ip6TunnelFlags),
Protocol(IpProtocol),
PMtuDisc(bool),
Ipv6RdPrefix(Ipv6Addr),
Ipv6RdRelayPrefix(Ipv4Addr),
Ipv6RdPrefixLen(u16),
Ipv6RdRelayPrefixLen(u16),
EncapType(TunnelEncapType),
EncapFlags(TunnelEncapFlags),
EncapSPort(u16),
EncapDPort(u16),
CollectMetadata(bool),
FwMark(u32),
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.
Link(u32)
Local(IpAddr)
Remote(IpAddr)
Ttl(u8)
Tos(u8)
EncapLimit(u8)
FlowInfo(u32)
Ipv6SitFlags(u16)
Ipv4Flags(u16)
Ipv6Flags(Ip6TunnelFlags)
Protocol(IpProtocol)
PMtuDisc(bool)
Ipv6RdPrefix(Ipv6Addr)
Ipv6RdRelayPrefix(Ipv4Addr)
Ipv6RdPrefixLen(u16)
Ipv6RdRelayPrefixLen(u16)
EncapType(TunnelEncapType)
EncapFlags(TunnelEncapFlags)
EncapSPort(u16)
EncapDPort(u16)
CollectMetadata(bool)
FwMark(u32)
Other(DefaultNla)
Trait Implementations§
Source§impl Clone for InfoIpTunnel
impl Clone for InfoIpTunnel
Source§fn clone(&self) -> InfoIpTunnel
fn clone(&self) -> InfoIpTunnel
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 InfoIpTunnel
impl Debug for InfoIpTunnel
Source§impl Nla for InfoIpTunnel
impl Nla for InfoIpTunnel
Source§impl<'a, T: AsRef<[u8]> + ?Sized> ParseableParametrized<NlaBuffer<&'a T>, InfoKind> for InfoIpTunnel
impl<'a, T: AsRef<[u8]> + ?Sized> ParseableParametrized<NlaBuffer<&'a T>, InfoKind> for InfoIpTunnel
Source§fn parse_with_param(
buf: &NlaBuffer<&'a T>,
kind: InfoKind,
) -> Result<Self, DecodeError>
fn parse_with_param( buf: &NlaBuffer<&'a T>, kind: InfoKind, ) -> Result<Self, DecodeError>
Deserialize the current type.
Source§impl PartialEq for InfoIpTunnel
impl PartialEq for InfoIpTunnel
impl Eq for InfoIpTunnel
impl StructuralPartialEq for InfoIpTunnel
Auto Trait Implementations§
impl Freeze for InfoIpTunnel
impl RefUnwindSafe for InfoIpTunnel
impl Send for InfoIpTunnel
impl Sync for InfoIpTunnel
impl Unpin for InfoIpTunnel
impl UnwindSafe for InfoIpTunnel
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