1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//! **netlink_wi** is a Rust library for interacting with wireless devices on Linux systems through the **nl80211** netlink interface.
//!
//! It provides programmatic access to wireless configuration and status information, allowing developers to query and control Wi-Fi interfaces directly from Rust code.
//!
//! With **netlink_wi**, you can:
//!
//! - Enumerate and inspect wireless network interfaces
//! - Retrieve hardware capabilities and detailed device specifications
//! - Access information about connected stations and peers
//! - Query wireless regulatory domain settings
//! - Configure wireless interface parameters
//!
//! ## Usage
//!
//! Synchronous example using [NlSocket]:
//!
//! ```rust,no_run
//! use netlink_wi::NlSocket;
//!
//! fn list_interfaces() {
//! let mut socket = NlSocket::connect().unwrap();
//! let interfaces = socket.list_interfaces().unwrap();
//! for interface in interfaces {
//! println!("{:#?}", interface);
//! }
//! }
//! ```
//!
//! Asynchronous example using [AsyncNlSocket] (requires `async` feature):
//!
//! ```rust,no_run
//! # // This hidden main allows docs.rs to render the snippet even without the feature.
//! # #[cfg(not(feature = "async"))]
//! # fn main() {}
//! # #[cfg(feature = "async")]
//! use netlink_wi::AsyncNlSocket;
//!
//! # #[cfg(feature = "async")]
//! #[tokio::main]
//! async fn main() {
//! let socket = AsyncNlSocket::connect().await.unwrap();
//! let interfaces = socket.list_interfaces().await.unwrap();
//!
//! for interface in interfaces {
//! println!("{:#?}", interface);
//! }
//! }
//! ```
//!
//! See more examples in [Github](https://github.com/uption/netlink_wi/tree/master/examples).
//!
pub
pub
pub use crateMonitorFlags;
pub use AsyncNlSocket;
pub use NlError;
pub use Result as NlResult;
pub use ChannelConfig;
pub use NlSocket;