Expand description
Rust Library for parsing and indexing ASN-DB files. For the single ip type files see Ipv4Database and Ipv6Database. If you want to parse the combined file, you want to use Database.
Structs§
- Database
- Database for indexing and searching combined list of ipv4 and ipv6 entries.
- Entry
- An entry in the database.
- IpDatabase
- IP -> ASN Database for a single IP version. See Ipv4Database and Ipv6Database.
Enums§
- Error
- An error which can occur when using this crate.
- IpEntry
- A lookup result which is either a reference to Ipv4Entry or Ipv6Entry.
- IpEntry
Buf - Owned version of IpEntry
Type Aliases§
- Ipv4
Database - Database for parsing the
ip2asn-v4.tsv
file. - Ipv4
Entry - An ipv4 entry in the database.
- Ipv6
Database - Database for parsing the
ip2asn-v6.tsv
file. - Ipv6
Entry - An ipv6 entry in the database.
- Result
- A custom Result type which can fail with an [crate::Error].