Crate wgctrl_rs[][src]

Structs

AllowedIp

Represents an IP address a peer is allowed to have, in CIDR notation.

DeviceConfigBuilder

Builds and represents a configuration that can be applied to a WireGuard interface.

DeviceInfo

Represents all available information about a WireGuard device (interface).

InvalidKey

Represents an error in base64 key parsing.

Key

Represents a WireGuard encryption key.

KeyPair

Represents a pair of private and public keys.

PeerConfig

Represents a single peer's configuration (i.e. persistent attributes).

PeerConfigBuilder

Builds and represents a single peer in a WireGuard interface configuration.

PeerInfo

Represents the complete status of a peer.

PeerStats

Represents a single peer's current statistics (i.e. the data from the current session).

Functions

delete_interface

Deletes an existing WireGuard interface by name.