pub struct OverlayConfig {
pub local_endpoint: SocketAddr,
pub private_key: String,
pub public_key: String,
pub overlay_cidr: String,
pub cluster_cidr: Option<String>,
pub peer_discovery_interval: Duration,
}Expand description
Overlay network configuration
Fields§
§local_endpoint: SocketAddrLocal overlay endpoint (WireGuard protocol)
private_key: StringPrivate key (x25519)
public_key: StringPublic key (derived from private key)
overlay_cidr: StringOverlay network CIDR (supports both IPv4 e.g. “10.0.0.0/8” and IPv6 e.g. “fd00::/48”)
Historically stores the per-node slice / host IP (e.g. 10.200.0.0/28
or 10.200.0.1/32) that the local TUN/Wintun adapter is assigned.
It is not the full cluster CIDR — use Self::cluster_cidr for that.
cluster_cidr: Option<String>Full cluster CIDR (e.g. 10.200.0.0/16).
Used on Windows to install a catch-all host route pointing the
entire cluster range at the Wintun adapter so traffic to remote-node
container IPs flows through the overlay (HCN auto-installs the more
specific local /28 → vSwitch route, and longest-prefix-match routes
local traffic to the vSwitch). None on pre-cluster-CIDR configs;
callers should fall back to skipping the route install in that case.
peer_discovery_interval: DurationPeer discovery interval
Trait Implementations§
Source§impl Clone for OverlayConfig
impl Clone for OverlayConfig
Source§fn clone(&self) -> OverlayConfig
fn clone(&self) -> OverlayConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OverlayConfig
impl Debug for OverlayConfig
Source§impl Default for OverlayConfig
impl Default for OverlayConfig
Source§impl<'de> Deserialize<'de> for OverlayConfig
impl<'de> Deserialize<'de> for OverlayConfig
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>,
Source§impl PartialEq for OverlayConfig
impl PartialEq for OverlayConfig
Source§fn eq(&self, other: &OverlayConfig) -> bool
fn eq(&self, other: &OverlayConfig) -> bool
self and other values to be equal, and is used by ==.