wgctrl-rs 0.1.0

High level bindings to the WireGuard embeddable C library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
extern crate wgctrl_rs;

use wgctrl_rs::*;

fn main() {
    for dev in DeviceInfo::enumerate().expect("Failed to enumerate devices!") {
        println!(
            "{:#?}",
            DeviceInfo::get_by_name(&dev).expect("Failed to get device!")
        );
    }
}