Crate tor_geoip

Source
Expand description

A crate for performing GeoIP lookups using the Tor GeoIP database.

Modules§

err 🔒
Error types for GeoIP parsing.

Structs§

CountryCode
A two-letter country code.
GeoipDb
A database of IP addresses to country codes.
NetDefn 🔒
A country code / ASN definition.
OptionCc
Wrapper for an Option<CountryCode> that encodes None 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§

HasCountryCode
A (representation of a) host on the network which may have a known country code.