pub struct TunnelConfig {
pub protocol: TunnelProtocol,
pub local_ipv4: Option<Ipv4Addr>,
pub remote_ipv4: Option<Ipv4Addr>,
pub ipv6_prefix: Option<Ipv6Addr>,
pub aftr_ipv6: Option<Ipv6Addr>,
pub aftr_name: Option<String>,
pub mtu: u16,
pub keepalive_interval: Duration,
pub establishment_timeout: Duration,
}
Expand description
Configuration for tunneling protocols
Fields§
§protocol: TunnelProtocol
Protocol to use for tunneling
local_ipv4: Option<Ipv4Addr>
Local IPv4 address for tunnel endpoint
remote_ipv4: Option<Ipv4Addr>
Remote IPv4 address for tunnel endpoint (6in4 only)
ipv6_prefix: Option<Ipv6Addr>
IPv6 prefix to use for the tunnel
aftr_ipv6: Option<Ipv6Addr>
DS-Lite AFTR (Address Family Transition Router) IPv6 address
aftr_name: Option<String>
DS-Lite AFTR domain name for DNS resolution
mtu: u16
Maximum transmission unit for tunnel packets
keepalive_interval: Duration
Keepalive interval for maintaining tunnel state
establishment_timeout: Duration
Maximum time to wait for tunnel establishment
Trait Implementations§
Source§impl Clone for TunnelConfig
impl Clone for TunnelConfig
Source§fn clone(&self) -> TunnelConfig
fn clone(&self) -> TunnelConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TunnelConfig
impl Debug for TunnelConfig
Auto Trait Implementations§
impl Freeze for TunnelConfig
impl RefUnwindSafe for TunnelConfig
impl Send for TunnelConfig
impl Sync for TunnelConfig
impl Unpin for TunnelConfig
impl UnwindSafe for TunnelConfig
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