Function get

Source
pub fn get() -> Option<IpAddr>
Examples found in repository?
examples/usage.rs (line 6)
3fn main() {
4    println!(
5        "{}",
6        machine_ip::get()
7            .expect("Could not find local IP address.")
8            .to_string()
9    );
10}