Expand description
A crate to list WiFi hotspots in your area.
As of v0.5.x macOS, Windows and Linux are supported. Use versions 0.6.* if you want a drop-in replacement for the original crate.
§Usage
This crate is on crates.io and can be
used by adding wifi_scan to the dependencies in your project’s Cargo.toml.
[dependencies]
wifi_scan = "0.7.*"§Example
use wifi_scan;
println!("{:?}", wifi_scan::scan());Alternatively if you’ve cloned the the Git repo, you can run the above example
using: cargo run --example scan.
Structs§
- Wifi
- Wifi struct used to return information about wifi hotspots. Shows security on Linux since version 0.6.0.
Enums§
- Error
- Erros for wifi_scan
- Signal
Strength - Human readable signal strength
- Wifi
Security - Enum of WiFi Securities wifi_scan can output. Not all implementations support all securities.
Traits§
Functions§
- scan
- Returns a list of WiFi hotspots in your area.
Uses
corewlanon macOS andwin32-wlanon Windows.nl80211-rsandnetlink-rustcrates are being used on machines running Linux.