[−][src]Crate openvpn_management
openvpn-management is a wrapper to the openvpn management interface.
Install:
The crate is called openvpn-management
. You can use it by adding it as a dependency to your Cargo.toml
file:
[dependencies]
openvpn-management = "*"
Features:
- Getting all connected client information
Basic usage:
use openvpn_management::EventManager; // build the client: let mut event_manager = openvpn_management::CommandManagerBuilder::new() .management_url("localhost:5555") .build() .unwrap(); // get the current status: let status = event_manager .get_status() .unwrap(); // get client information: let clients = status.clients();
Structs
Client | Contains useful information on a client which is connected to the openvpn server |
CommandManager | |
CommandManagerBuilder | |
Status | Contains the marshalled response from the |
Enums
OpenvpnError |
Traits
EventManager |
Type Definitions
Result |