Module mmdb
Available on crate feature
net only.Expand description
MaxMind DB (.mmdb) reader and minimal writer.
See MmdbReader for querying a database held in memory or mapped from
disk, MmdbFileReader for querying a file through positional reads, and
MmdbBuilder for constructing one (used to synthesise test fixtures).
Structs§
- Metadata
- Parsed metadata describing a MaxMind DB.
- Mmdb
Builder - A builder for MaxMind DB byte images.
- Mmdb
File Config - Configuration of an
MmdbFileReader. - Mmdb
File Reader - A MaxMind DB reader that reads the file through positional reads.
- Mmdb
Reader - A zero-copy reader over a MaxMind DB.
Enums§
- IpVersion
- The IP version of the addresses a database indexes.
- Mmdb
Write Error - Error returned while building or serialising a MaxMind DB.
- Record
Size - The number of bits in each search-tree record. The format only defines 24, 28 and 32; a node always holds two records.