async_ip 0.13.0

An asynchronous client used to obtain one's global Ipv6 or Ipv4 address
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cfg(test)]
mod tests {
    use async_ip::{get_all, get_all_multi_concurrent};
    use citadel_io::tokio;

    #[tokio::test]
    async fn get() {
        let addrs = get_all::<()>(None).await.unwrap();
        println!("Addrs: {addrs:?}");
    }

    #[tokio::test]
    async fn get_multi() {
        let addrs = get_all_multi_concurrent::<()>(None).await.unwrap();
        println!("Addrs: {addrs:?}");
    }
}