wiretun 0.5.0

WireGuard Library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("interface must be named utun[0-9]*")]
    InvalidName,
    #[error("system call failed: {0}")]
    IO(#[from] std::io::Error),
    #[error("system call errno: {0}")]
    Sys(#[from] nix::Error),
    #[error("invalid IP packet")]
    InvalidIpPacket,
    #[error("tun closed")]
    Closed,
}