pub enum AdapterKindArg {
Ethernet,
Wireless,
Virtual,
Loopback,
}Expand description
Adapter kind argument for CLI parsing.
Maps to AdapterKind for filtering adapters by type.
Only the four known adapter kinds are exposed; use name regex filters
for Other(u32) variants.
Variants§
Ethernet
Physical Ethernet adapter
Wireless
Wireless (Wi-Fi) adapter
Virtual
Virtual adapter (VMware, VirtualBox, Hyper-V, WSL, etc.)
Loopback
Loopback adapter (localhost)
Trait Implementations§
Source§impl Clone for AdapterKindArg
impl Clone for AdapterKindArg
Source§fn clone(&self) -> AdapterKindArg
fn clone(&self) -> AdapterKindArg
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdapterKindArg
impl Debug for AdapterKindArg
Source§impl From<AdapterKindArg> for AdapterKind
impl From<AdapterKindArg> for AdapterKind
Source§fn from(arg: AdapterKindArg) -> Self
fn from(arg: AdapterKindArg) -> Self
Converts to this type from the input type.
Source§impl Hash for AdapterKindArg
impl Hash for AdapterKindArg
Source§impl PartialEq for AdapterKindArg
impl PartialEq for AdapterKindArg
Source§impl ValueEnum for AdapterKindArg
impl ValueEnum for AdapterKindArg
impl Copy for AdapterKindArg
impl Eq for AdapterKindArg
impl StructuralPartialEq for AdapterKindArg
Auto Trait Implementations§
impl Freeze for AdapterKindArg
impl RefUnwindSafe for AdapterKindArg
impl Send for AdapterKindArg
impl Sync for AdapterKindArg
impl Unpin for AdapterKindArg
impl UnwindSafe for AdapterKindArg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.