Crate wifi_scan

Crate wifi_scan 

Source
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
SignalStrength
Human readable signal strength
WifiSecurity
Enum of WiFi Securities wifi_scan can output. Not all implementations support all securities.

Traits§

WlanScanner

Functions§

scan
Returns a list of WiFi hotspots in your area. Uses corewlan on macOS and win32-wlan on Windows. nl80211-rs and netlink-rust crates are being used on machines running Linux.