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.
MismatchedLineTerminators
Occurs when a matcher reports a line terminator that is different than the one configured in the searcher.
Fields of MismatchedLineTerminators
matcher: LineTerminator | The matcher's line terminator. |
searcher: LineTerminator | The searcher's line terminator. |
UnknownEncoding
Occurs when no encoding could be found for a particular label.
Fields of UnknownEncoding
label: Vec<u8> | The provided encoding label that could not be found. |
Trait Implementations
impl Clone for ConfigError
[src]
impl Clone for ConfigError
fn clone(&self) -> ConfigError
[src]
fn clone(&self) -> ConfigError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for ConfigError
[src]
impl Debug for ConfigError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for ConfigError
[src]
impl Eq for ConfigError
impl PartialEq for ConfigError
[src]
impl PartialEq for ConfigError
fn eq(&self, other: &ConfigError) -> bool
[src]
fn eq(&self, other: &ConfigError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ConfigError) -> bool
[src]
fn ne(&self, other: &ConfigError) -> bool
This method tests for !=
.
impl Error for ConfigError
[src]
impl Error for ConfigError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Display for ConfigError
[src]
impl Display for ConfigError
Auto Trait Implementations
impl Send for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Sync for ConfigError