Enum interfaces::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
Ipv4
This interface is IPv4.
Ipv6
This interface is IPv6.
Link
This interface is a link interface (AF_LINK
).
Unknown(i32)
This interface has an unknown interface type. The interior i32
contains the numerical
value that is unknown.
Packet
Linux only: this interface is a packet interface (AF_PACKET
).
Trait Implementations
impl PartialEq for Kind
[src]
impl PartialEq for Kind
fn eq(&self, other: &Kind) -> bool
[src]
fn eq(&self, other: &Kind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Kind) -> bool
[src]
fn ne(&self, other: &Kind) -> bool
This method tests for !=
.
impl Eq for Kind
[src]
impl Eq for Kind
impl Debug for Kind
[src]
impl Debug for Kind
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Kind
[src]
impl Clone for Kind
fn clone(&self) -> Kind
[src]
fn clone(&self) -> Kind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Kind
[src]
impl Copy for Kind
impl Display for Kind
[src]
impl Display for Kind