Enum geoip2::Error[][src]

pub enum Error {
    InvalidMetadata,
    InvalidRecordSize(u16),
    InvalidDatabaseType(String),
    InvalidSearchTreeSize,
    InvalidOffset,
    InvalidDataType(u8),
    InvalidNode,
    UnknownField(String),
    NotFound,
    IPv4Only,
    CorruptSearchTree,
    Utf8Error(Utf8Error),
}

Variants

InvalidMetadata
InvalidRecordSize

Tuple Fields of InvalidRecordSize

0: u16
InvalidDatabaseType

Tuple Fields of InvalidDatabaseType

0: String
InvalidSearchTreeSize
InvalidOffset
InvalidDataType

Tuple Fields of InvalidDataType

0: u8
InvalidNode
UnknownField

Tuple Fields of UnknownField

0: String
NotFound
IPv4Only
CorruptSearchTree
Utf8Error

Tuple Fields of Utf8Error

0: Utf8Error

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.