mac_conditions 1.0.0

Obtain the MAC address by matching the conditions
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 5.55 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 335.23 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 26s Average build duration of successful builds.
  • all releases: 26s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • spdrwcn/mac_conditions
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • spdrwcn

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