Registry / networking / rtnetlink

rtnetlink

JSON →
library0.21.0rscratesunverified

Manipulate Linux networking resources via netlink, providing a safe Rust interface.

# Cargo.toml [dependencies] rtnetlink = "0.21.0"
INSTALL
IMPORT
SIG · RTNETLINK
R
rtnetlink
networkingrustv0.21.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

new_connection
use rtnetlink::new_connection;

Lists network links using rtnetlink with an async runtime.

use rtnetlink::new_connection; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let (connection, handle, _) = new_connection()?; tokio::spawn(connection); let links = handle.link().get().execute().await?; println!("Links: {:?}", links); Ok(()) }
Debug
Known issues
gotchaRequires an async runtime like Tokio to drive the connection.
fix
Add tokio as a dependency and use #[tokio::main] or similar.
affects: >=0.1.0
Upgrade
Version history
0.21.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Amazon
1
OpenAI (training)
1
Resources
rtnetlink — cargo add rtnetlink · libregistry