#[non_exhaustive]pub enum InterfaceMacAddress {
Station,
AccessPoint,
Bluetooth,
}Expand description
Interface selection for interface_mac_address.
Each interface uses a distinct MAC address derived from either the base MAC or the overridden
MAC if override_mac_address has been called.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Station
Wi-Fi station. Equivalent to the base MAC address or overridden via
override_mac_address.
AccessPoint
Wi-Fi SoftAP.
Bluetooth
Bluetooth (BT/BLE).
Trait Implementations§
Source§impl Clone for InterfaceMacAddress
impl Clone for InterfaceMacAddress
Source§fn clone(&self) -> InterfaceMacAddress
fn clone(&self) -> InterfaceMacAddress
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InterfaceMacAddress
impl Debug for InterfaceMacAddress
Source§impl Default for InterfaceMacAddress
impl Default for InterfaceMacAddress
Source§fn default() -> InterfaceMacAddress
fn default() -> InterfaceMacAddress
Returns the “default value” for a type. Read more
Source§impl Hash for InterfaceMacAddress
impl Hash for InterfaceMacAddress
Source§impl PartialEq for InterfaceMacAddress
impl PartialEq for InterfaceMacAddress
impl Copy for InterfaceMacAddress
impl Eq for InterfaceMacAddress
impl StructuralPartialEq for InterfaceMacAddress
Auto Trait Implementations§
impl Freeze for InterfaceMacAddress
impl RefUnwindSafe for InterfaceMacAddress
impl Send for InterfaceMacAddress
impl Sync for InterfaceMacAddress
impl Unpin for InterfaceMacAddress
impl UnsafeUnpin for InterfaceMacAddress
impl UnwindSafe for InterfaceMacAddress
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)