Enum interfaces2::Kind[][src]

pub enum Kind {
    Ipv4,
    Ipv6,
    Link,
    Unknown(i32),
    Packet,
}

Kind represents the interface family (equivalent to the sa_family field in the sockaddr structure).

Variants

This interface is IPv4.

This interface is IPv6.

This interface is a link interface (AF_LINK).

This interface has an unknown interface type. The interior i32 contains the numerical value that is unknown.

Linux only: this interface is a packet interface (AF_PACKET).

Trait Implementations

impl PartialEq for Kind
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Kind
[src]

impl Debug for Kind
[src]

Formats the value using the given formatter. Read more

impl Clone for Kind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Kind
[src]

impl Display for Kind
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Kind

impl Sync for Kind