[][src]Module protonvpn::vpn

Functions for interacting with the openvpn binary, including starting / stopping a connection, and creating config files.

Modules

settings

This module contains a wrapper type, [settings::Settings]. It has methods for creating setters, as well as an impl containing special setters for when it is UserConfig being wrapped.

util

This module declares all the structs that store application state.

Structs

VpnConnection

Stores information about the current connection. Its purpose to prevent the passfile path from being dropped (upon drop the corresponding file is unlinked/deleted)

Functions

connect

This function wraps the helper, first creating the password tempfile and passing it in.