ipify_api 1.0.0

ipify client
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented2 out of 2 items with examples
  • Size
  • Source code size: 19.17 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.31 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • aulisius/ipify-rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • aulisius

Crates.io rust-stable crate-doc

ipify Client

This crate provides functionalities to retrieve your public IP. It uses hyper along with ipify. Works only on HTTP.

extern crate hyper;
extern crate ipify_api;
use hyper::rt::{self, Future};

fn main() {
    rt::run(
        ipify_api::get_ip("http://my-ipify-instance.rs")
            .map(|ip| println!("{}", ip))
            .map_err(|e| println!("{}", e)),
    );
}