Crate libtun

Source

Modules§

channel
nettool
protocol

Macros§

ensure
Ensure a condition is true. If it is not, return from the function with an error.

Structs§

Backtrace
A backtrace starting from the beginning of the thread.
Closer
Config
CreateTun
SNAFU context selector for the TunError::CreateTun variant
Packet
ParseAddrFail
SNAFU context selector for the TunError::ParseAddrFail variant
PktWriteError
SNAFU context selector for the TunError::PktWriteError variant
ReadError
SNAFU context selector for the TunError::ReadError variant
Reader
RunShellError
SNAFU context selector for the TunError::RunShellError variant
ShellResultError
SNAFU context selector for the TunError::ShellResultError variant
Systun
WriteError
SNAFU context selector for the TunError::WriteError variant
Writer

Enums§

TunError

Traits§

ErrorCompat
Backports changes to the Error trait to versions of Rust lacking them.
ResultExt
Additions to Result.

Type Aliases§

Result

Derive Macros§

Snafu
See the crate-level documentation for SNAFU which contains tested examples of this macro.