Skip to main content

Module mmdb

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.
MmdbBuilder
A builder for MaxMind DB byte images.
MmdbFileConfig
Configuration of an MmdbFileReader.
MmdbFileReader
A MaxMind DB reader that reads the file through positional reads.
MmdbReader
A zero-copy reader over a MaxMind DB.

Enums§

IpVersion
The IP version of the addresses a database indexes.
MmdbWriteError
Error returned while building or serialising a MaxMind DB.
RecordSize
The number of bits in each search-tree record. The format only defines 24, 28 and 32; a node always holds two records.