Expand description
A crate for performing GeoIP lookups using the Tor GeoIP database.
Modules§
- err 🔒
- Error types for GeoIP parsing.
Structs§
- Country
Code - A two-letter country code.
- GeoipDb
- A database of IP addresses to country codes.
- NetDefn 🔒
- A country code / ASN definition.
- Option
Cc - Wrapper for an
Option<
CountryCode
>
that encodesNone
as??
.
Enums§
- Error
- An error type from the tor-geoip crate.
Statics§
- EMBEDDED_
DB_ 🔒PARSED - A parsed copy of the embedded database.
- EMBEDDED_
DB_ 🔒V4 - An embedded copy of the latest geoip v4 database at the time of compilation.
- EMBEDDED_
DB_ 🔒V6 - An embedded copy of the latest geoip v6 database at the time of compilation.
Traits§
- HasCountry
Code - A (representation of a) host on the network which may have a known country code.