Crate wg_config

Source

Structs§

WgClientConf
Represents WG client configuration
WgConf
Represents WG configuration file
WgConfPeers
Iterator over WgConf [Peer]s.
WgInterface
Represents WG [Interface] section
WgKey
WG key (private, public or preshared)
WgPeer
Represents WG [Peer] section

Enums§

IpAddrExt
SocketAddrExt
WgConfErrKind
WgConfError

Constants§

INTERFACE_TAG
Interface tag
PEER_TAG
Peer tag

Functions§

check_if_wg_conf
Checks if provided file is WG config

Type Aliases§

WgPresharedKey
WgPrivateKey
WgPublicKey