Enum imdb_index::ErrorKind [] [src]

pub enum ErrorKind {
    Path(PathBuf),
    VersionMismatch {
        expected: u64,
        got: u64,
    },
    UnknownTitle(String),
    UnknownScorer(String),
    UnknownNgramType(String),
    UnknownSimilarity(String),
    UnknownDirective(String),
    Bug(String),
    Config(String),
    Csv(String),
    Fst(String),
    Io,
    Number,
    // some variants omitted
}

The specific kind of error that can occur.

Variants

An error that occurred while working with a file path.

An index version mismatch. This error occurs when the version of the index is different from the version supported by this version of imdb-index.

Generally speaking, the versions must be exactly equivalent, otherwise this error is returned.

Fields of VersionMismatch

The expected or supported index version.

The actual version of the index on disk.

An error parsing the type of a title.

The data provided is the unrecognized title type.

An error parsing the name of a scorer.

The data provided is the unrecognized name.

An error parsing the name of an ngram type.

The data provided is the unrecognized name.

An error parsing the name of a similarity function.

The data provided is the unrecognized name.

An error parsing the name of a directive from a free-form query.

The data provided is the unrecognized name.

An unexpected error occurred while reading an index that should not have occurred. Generally, these errors correspond to bugs in this library.

An error occurred while reading/writing the index config.

An error that occured while writing or reading CSV data.

An error that occured while creating an FST index.

An unexpected I/O error occurred.

An error occurred while parsing a number in a free-form query.

Trait Implementations

impl Clone for ErrorKind
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ErrorKind
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for ErrorKind
[src]

impl PartialEq for ErrorKind
[src]

[src]

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

[src]

This method tests for !=.

impl Display for ErrorKind
[src]

[src]

Formats the value using the given formatter. Read more

impl From<ErrorKind> for Error
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for ErrorKind

impl Sync for ErrorKind