pub struct OverlayConfig {
pub local_endpoint: SocketAddr,
pub private_key: String,
pub public_key: String,
pub overlay_cidr: 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”)
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
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 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OverlayConfig
impl PartialEq for OverlayConfig
Source§impl Serialize for OverlayConfig
impl Serialize for OverlayConfig
impl StructuralPartialEq for OverlayConfig
Auto Trait Implementations§
impl Freeze for OverlayConfig
impl RefUnwindSafe for OverlayConfig
impl Send for OverlayConfig
impl Sync for OverlayConfig
impl Unpin for OverlayConfig
impl UnsafeUnpin for OverlayConfig
impl UnwindSafe for OverlayConfig
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