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
use corewlan::{MutableNetworkProfile, Security};

#[test]
fn mutable_network_profile_setters_update_local_state() {
    let profile = MutableNetworkProfile::new().expect("mutable profile init should succeed");
    profile.set_ssid_data(Some(b"corewlan-rs"));
    profile.set_security(Security::Wpa3Personal);

    assert_eq!(profile.ssid(), Some("corewlan-rs".to_owned()));
    assert_eq!(profile.security(), Security::Wpa3Personal);
}