Expand description
A crate for performing GeoIP lookups using the Tor GeoIP database.
Modulesยง
- dense_
range_ ๐map - Helper type: a frozen RangeMap where most ranges do not have gaps between them.
- err ๐
- Error types for GeoIP parsing.
Structsยง
- Country
Code - A two-letter country code.
- GeoipDb
- A database of IP addresses to country codes.
- Option
Cc - Wrapper for an
Option<CountryCode>that encodesNoneas??. - RawGeoip
DbExport - An export of a GeoIp database in a raw format suitable for embedding.
Enumsยง
- Error
- An error type from the tor-geoip crate.
Staticsยง
- EMBEDDED_
DB_ ๐PARSED - A parsed copy of the embedded database.
Traitsยง
- DbAddress ๐
- A type that can be an address entry in one of our databases.
- HasCountry
Code - A (representation of a) host on the network which may have a known country code.
Functionsยง
- parse_
line ๐ - Parse a single line from a database, expecting addresses of type T.
Type Aliasesยง
- Asn ๐
- The type of an ASN.
- Parsed
Line ๐ - A line as returned by
parse_line.