Module netsim::iface [] [src]

Contains utilities for creating virtual TUN/TAP network interfaces.

Structs

EtherIface

A handle to a virtual (TAP) network interface. Can be used to read/write ethernet frames directly to the device.

EtherIfaceBuilder

This object can be used to set the configuration options for a EtherIface before creating the EtherIface using build.

Ipv4Iface

A handle to a virtual (TUN) network interface. Can be used to read/write ethernet frames directly to the device.

Ipv4IfaceBuilder

This object can be used to set the configuration options for a Ipv4Iface before creating the Ipv4Iface using build.

UnboundEtherIface

Represents a TAP device which has been built but not bound to a tokio event loop.

UnboundIpv4Iface

Represents a TUN device which has been built but not bound to a tokio event loop.

Enums

IfaceBuildError

Error raised when netsim fails to build an interface.