#[non_exhaustive]pub struct IpTunnelConfig {
pub mode: Option<IpTunnelMode>,
pub base_iface: Option<String>,
pub local: Option<IpAddr>,
pub remote: Option<IpAddr>,
pub ttl: Option<u8>,
pub tos: Option<u8>,
pub flow_label: Option<u32>,
pub ip6tun_flags: Option<Vec<Ip6TunnelFlag>>,
pub pmtu_disc: Option<bool>,
pub encap_limit: Option<u8>,
pub fwmark: Option<u32>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mode: Option<IpTunnelMode>The mode of the IP tunnel.
base_iface: Option<String>The parent interface name of the IP tunnel.
local: Option<IpAddr>§remote: Option<IpAddr>§ttl: Option<u8>§tos: Option<u8>§flow_label: Option<u32>§ip6tun_flags: Option<Vec<Ip6TunnelFlag>>The flags of a ipip6 or ip6ip6 tunnel.
pmtu_disc: Option<bool>The PMTU discovery flag of the IP tunnel.
encap_limit: Option<u8>§fwmark: Option<u32>Trait Implementations§
Source§impl Clone for IpTunnelConfig
impl Clone for IpTunnelConfig
Source§fn clone(&self) -> IpTunnelConfig
fn clone(&self) -> IpTunnelConfig
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 IpTunnelConfig
impl Debug for IpTunnelConfig
Source§impl Default for IpTunnelConfig
impl Default for IpTunnelConfig
Source§fn default() -> IpTunnelConfig
fn default() -> IpTunnelConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IpTunnelConfig
impl<'de> Deserialize<'de> for IpTunnelConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IpTunnelConfig
impl PartialEq for IpTunnelConfig
Source§impl Serialize for IpTunnelConfig
impl Serialize for IpTunnelConfig
impl Eq for IpTunnelConfig
impl StructuralPartialEq for IpTunnelConfig
Auto Trait Implementations§
impl Freeze for IpTunnelConfig
impl RefUnwindSafe for IpTunnelConfig
impl Send for IpTunnelConfig
impl Sync for IpTunnelConfig
impl Unpin for IpTunnelConfig
impl UnsafeUnpin for IpTunnelConfig
impl UnwindSafe for IpTunnelConfig
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.