Crate inherface

Source
Expand description

A network interface can represent physical network devices such as ethernet or wireless. It can also be a virtual representation.

The operating system maintains records of available network interfaces and the data associated with them. This project gets the data and structures it as standard rust data types.

Structs§

NetworkInterface
A system’s network interface
V4IfAddr
IPV4 Interface from the AFINET network interface family
V6IfAddr
IPV6 Interface from the AFINET6 network interface family

Enums§

Error
Errors for this library

Functions§

get_interfaces
Maps the raw data from libc linked list nodes into rust data types and joins the separate chunks of interface data into single NetworkInterfaces.

Type Aliases§

Netmask
An alias for an Option that wraps either a Ipv4Addr or a Ipv6Addr representing the IP for a Network Interface netmask
Result
Wraps standard library Result with custom Error enum