Struct async_tun::Tun[][src]

pub struct Tun { /* fields omitted */ }
Expand description

Represents a Tun/Tap device. Use TunBuilder to create a new instance of Tun.

Implementations

Returns the name of Tun/Tap device.

Returns the value of MTU.

Returns the IPv4 address of MTU.

Returns the IPv4 destination address of MTU.

Returns the IPv4 broadcast address of MTU.

Returns the IPv4 netmask address of MTU.

Returns to Ethernet MAC address.

Returns the flags of MTU.

Splits self to reader and writer pairs.

Returns a reader to read from tun.

Returns a writer to write to tun.

Trait Implementations

Extracts the raw file descriptor. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.