Crate tun

Source

Structs§

AsyncDevice
An async TUN device wrapper around a TUN device.
Configuration
Configuration builder for a TUN interface.
Device
A TUN device using the TUN/TAP Linux driver.
DeviceReader
DeviceWriter
PlatformConfig
Linux-only interface configuration.
Reader
Read-only end for a file descriptor.
Tun
TunPacketCodec
A TUN packet Encoder/Decoder.
Writer
Write-only end for a file descriptor.

Enums§

Error
Layer
TUN interface OSI layer of operation.

Constants§

DEFAULT_MTU
PACKET_INFORMATION_LENGTH

Traits§

AbstractDevice
A TUN abstract device interface.
ToAddress
Helper trait to convert things into IPv4 addresses.

Functions§

configure
create
Create a TUN device with the given name.
create_as_async
Create a TUN device with the given name.

Type Aliases§

BoxError
Result