Expand description
A pure-Rust lowlevel library for controlling wpasupplicant remotely
Note that in order to connect to wpasupplicant, you may need elevated permissions (eg run as root)
§Example
let mut wpa = wpactrl::Client::builder().open().unwrap();
println!("{}", wpa.request("LIST_NETWORKS").unwrap());
The library currently only supports UNIX sockets, but additional connection methods (eg UDP or pipes) may be added in the future.
Structs§
- Client
- A connection to
wpa_supplicant
/hostapd
- Client
Attached - A connection to
wpa_supplicant
/hostapd
that receives status messages - Client
Builder - Builder object used to construct a
Client
session
Enums§
- Error
- The errors that may occur using
wpactrl
Type Aliases§
- Result
- A
Result
alias where theErr
case iswpactrl::Error