Enum grep_searcher::ConfigError[][src]

pub enum ConfigError {
    SearchUnavailable,
    MismatchedLineTerminators {
        matcher: LineTerminator,
        searcher: LineTerminator,
    },
    UnknownEncoding {
        label: Vec<u8>,
    },
    // some variants omitted
}

An error that can occur when building a searcher.

This error occurs when a non-sensical configuration is present when trying to construct a Searcher from a SearcherBuilder.

Variants

Indicates that the heap limit configuration prevents all possible search strategies from being used. For example, if the heap limit is set to 0 and memory map searching is disabled or unavailable.

Occurs when a matcher reports a line terminator that is different than the one configured in the searcher.

Fields of MismatchedLineTerminators

The matcher's line terminator.

The searcher's line terminator.

Occurs when no encoding could be found for a particular label.

Fields of UnknownEncoding

The provided encoding label that could not be found.

Trait Implementations

impl Clone for ConfigError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ConfigError
[src]

Formats the value using the given formatter. Read more

impl Eq for ConfigError
[src]

impl PartialEq for ConfigError
[src]

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

This method tests for !=.

impl Error for ConfigError
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl Display for ConfigError
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for ConfigError

impl Sync for ConfigError