mac_conditions

Crates.iomac_conditions
lib.rsmac_conditions
version1.0.0
sourcesrc
created_at2024-05-22 10:15:29.06983
updated_at2024-05-22 10:15:29.06983
descriptionObtain the MAC address by matching the conditions
homepage
repositoryhttps://github.com/spdrwcn/mac_conditions
max_upload_size
id1247772
size5,558
(spdrwcn)

documentation

README

mac_conditions

Supported platforms: Any version of Windows that supports WMIC.

Example

use mac_conditions;

fn main() {
    let (wired_mac, wireless_mac, bluetooth_mac) = mac_conditions::get_mac_addresses();
    println!("wired_mac: {:?}", wired_mac);
    println!("wireless_mac: {:?}", wireless_mac);
    println!("bluetooth_mac: {:?}", bluetooth_mac);
}

conditions.yaml

conditions:  
  - adapter_type: wired  
    keywords:  
      - ["gbe", "true"]  
  - adapter_type: wireless  
    keywords:  
      - ["wi-fi", "true"]  
      - ["wi-fi", "ax"]  
      - ["wireless", "true"]  
  - adapter_type: bluetooth  
    keywords:  
      - ["bluetooth", "true"]

License

mac_conditions is licensed under both MIT and Apache 2.0

Commit count: 4

cargo fmt