pub enum IfType {
Other,
EthernetCsmacd,
Iso88025Tokenring,
Ppp,
SoftwareLoopback,
Atm,
Ieee80211,
Tunnel,
Ieee1394,
Unsupported,
// some variants omitted
}
Expand description
Represent an interface type
See IANA docs on iftype for more details
https://www.iana.org/assignments/ianaiftype-mib/ianaiftype-mib
Note that we only support a subset of the IANA interface
types and in case the adapter has an unsupported type,
IfType::Unsupported
is used. IfType::Other
is different from IfType::Unsupported
, as the former
one is defined by the IANA itself.
Variants
Other
EthernetCsmacd
Iso88025Tokenring
Ppp
SoftwareLoopback
Atm
Ieee80211
Tunnel
Ieee1394
Unsupported
Trait Implementations
impl Copy for IfType
impl StructuralPartialEq for IfType
Auto Trait Implementations
impl RefUnwindSafe for IfType
impl Send for IfType
impl Sync for IfType
impl Unpin for IfType
impl UnwindSafe for IfType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more