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
Ipv4This interface is IPv4.
Ipv6This interface is IPv6.
LinkThis 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.
PacketLinux only: this interface is a packet interface (AF_PACKET).
Trait Implementations
impl PartialEq for Kind[src]
impl PartialEq for Kindfn eq(&self, other: &Kind) -> bool[src]
fn eq(&self, other: &Kind) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for Kind[src]
impl Eq for Kindimpl Debug for Kind[src]
impl Debug for Kindfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Kind[src]
impl Clone for Kindfn clone(&self) -> Kind[src]
fn clone(&self) -> KindReturns 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 Kindimpl Display for Kind[src]
impl Display for Kind