if-addrs2

Crates.ioif-addrs2
lib.rsif-addrs2
version0.10.2
sourcesrc
created_at2023-09-13 15:15:30.958594
updated_at2023-09-13 15:15:30.958594
descriptionReturn interface IP addresses on Posix and windows systems
homepage
repositoryhttps://github.com/if-nil/if-addrs2
max_upload_size
id971557
size44,354
ifNil (if-nil)

documentation

README

if-addrs

https://crates.io/crates/if-addrs2

Overview

Retrieve network interface info for all interfaces on the system.

// List all of the machine's network interfaces
for iface in if_addrs::get_if_addrs().unwrap() {
    println!("{:#?}", iface);
}

Todo Items

  • Create an API for responding to changes in network interfaces.

License

This SAFE Network library is dual-licensed under the Modified BSD (LICENSE-BSD https://opensource.org/licenses/BSD-3-Clause) or the MIT license (LICENSE-MIT http://opensource.org/licenses/MIT) at your option.

Contribution

Copyrights in the SAFE Network are retained by their contributors. No copyright assignment is required to contribute to this project.

Commit count: 210

cargo fmt