xarxa

Crates

git

Versions

default

Flavors

Skip to main content

Module iface

Module iface 

Source
Expand description

Network interfaces.

An interface is a Driver added to a Stack, together with its configuration: hardware address, IP addresses, and whatever address autoconfiguration is turned on for it.

The two autoconfiguration methods are dhcpv4 and slaac, each turned on per interface and driven by Stack::poll.

An interface can also hand out addresses itself, as a dhcpv4_server.

Modules§

dhcpv4
DHCPv4 client.
dhcpv4_server
DHCPv4 server.
slaac
IPv6 stateless address autoconfiguration (SLAAC), built into the interface.

Structs§

Iface
An interface borrowed from a Stack, returned by Stack::iface.
IfaceAddr
An IP address assigned to an interface.
IfaceHandle
A handle to an interface added to a Stack.
IfaceIter
Iterator over the interfaces of a Stack, returned by Stack::ifaces.
MediumMismatch
The interface’s medium can not do this.

Enums§

AddIfaceError
Error returned by Stack::add_iface and Stack::add_iface_borrowed.
AddrError
Error returned by Iface::add_ip_addr and Iface::set_ip_addrs.
AddrOrigin
Where an interface address came from.
Medium
Type of medium of an interface.
MulticastError
Error type for Iface::join_multicast_group and Iface::leave_multicast_group.