Enum interfaces::Kind
source · pub enum Kind {
Ipv4,
Ipv6,
Link,
Unknown(i32),
Packet,
}
Expand description
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§
source§impl PartialEq<Kind> for Kind
impl PartialEq<Kind> for Kind
impl Copy for Kind
impl Eq for Kind
impl StructuralEq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more