pub struct Tun { /* fields omitted */ }
Expand description
Represents a Tun/Tap device. Use TunBuilder
to create a new instance of Tun
.
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.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.