pub type GeoIpError = MaxMindDbError;Expand description
An error in the GeoIpLookup.
Aliased Type§
pub enum GeoIpError {
InvalidDatabase {
message: String,
offset: Option<usize>,
},
Io(Error),
Mmap(Error),
Decoding {
message: String,
offset: Option<usize>,
path: Option<String>,
},
InvalidNetwork(IpNetworkError),
InvalidInput {
message: String,
},
}Variants§
InvalidDatabase
The database file is invalid or corrupted.
Fields
Io(Error)
An I/O error occurred while reading the database.
Mmap(Error)
Memory mapping failed.
Decoding
Error decoding data from the database.
Fields
InvalidNetwork(IpNetworkError)
The provided network/CIDR is invalid.
InvalidInput
The provided input is invalid for this operation.