corewlan 0.2.0

Safe Rust bindings for Apple's CoreWLAN framework — inspect Wi-Fi interfaces, mutable configurations, event delegates, and preferred network state on macOS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod common;

use corewlan::Security;

#[test]
fn network_snapshot_and_equality() {
    if let Some(network) = common::first_network() {
        let clone = network.clone();
        assert_eq!(network, clone);
        let _ = network.ssid();
        let _ = network.bssid();
        let _ = network.wlan_channel();
        let _ = network.supports_security(Security::Wpa2Personal);
    }
}