amber/network_interface_info

Types

pub type IpFamily {
  IPv4
  IPv6
}

Constructors

  • IPv4
  • IPv6

The information for a network interface returned from a call to amber.network_interfaces.

pub type NetworkInterfaceInfo {
  NetworkInterfaceInfo(
    name: String,
    family: IpFamily,
    address: String,
    netmask: String,
    scopeid: option.Option(Int),
    cidr: String,
    mac: String,
  )
}

Constructors

  • NetworkInterfaceInfo(
      name: String,
      family: IpFamily,
      address: String,
      netmask: String,
      scopeid: option.Option(Int),
      cidr: String,
      mac: String,
    )

    Arguments

    name

    The network interface name.

    family

    The IP protocol version.

    address

    The IP address bound to the interface.

    netmask

    The netmask applied to the interface.

    scopeid

    The IPv6 scope id or None.

    cidr

    The CIDR range.

    mac

    The MAC address.

Search Document