pub enum QueryError {
Show 18 variants
EmptyName,
InvalidManualSection,
InvalidSource,
ConflictingSourceSelectors,
EmptyMarkdownPath,
UnsupportedInputFormat {
path: String,
},
EmptySelection,
EmptySelector,
EmptyEntry,
InvalidSearch(SearchError),
Markdown {
path: String,
detail: String,
},
EmptyMarkdown {
label: String,
},
Registry {
detail: String,
},
Manual(ManualLoadError),
ManualWithTldr {
error: ManualLoadError,
topic: String,
},
TldrNotFound {
topic: String,
},
Tldr {
topic: String,
detail: String,
},
NoReadableContent {
name: String,
},
}Expand description
A query cannot produce either authoritative manual content or a quick reference.
Variants§
EmptyName
A document selector was empty after trimming.
InvalidManualSection
A native manual category was empty or malformed.
InvalidSource
An explicit Markdown source name was empty.
ConflictingSourceSelectors
Markdown-source and native-manual selectors were combined.
EmptyMarkdownPath
A direct Markdown input path was empty.
UnsupportedInputFormat
Automatic format inference did not recognize a direct input.
EmptySelection
Excerpt projection was requested without selectors.
EmptySelector
An excerpt selector was empty.
EmptyEntry
An explanation entry name was empty.
InvalidSearch(SearchError)
Search configuration failed validation.
Markdown
Markdown input could not be read or parsed.
EmptyMarkdown
Markdown parsing produced neither document nor tldr content.
Registry
Registered-document discovery failed.
Manual(ManualLoadError)
Native manual loading failed.
ManualWithTldr
No full document was found, but an optional tldr entry is available.
Fields
error: ManualLoadErrorNative-manual failure retained as the authoritative lookup error.
TldrNotFound
An explicit tldr query found no quick-reference candidate.
Tldr
An explicit tldr candidate could not be read or parsed.
NoReadableContent
No Markdown, manual, or quick-reference content could be resolved.
Trait Implementations§
Source§impl Clone for QueryError
impl Clone for QueryError
Source§fn clone(&self) -> QueryError
fn clone(&self) -> QueryError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QueryError
impl Debug for QueryError
Source§impl Display for QueryError
impl Display for QueryError
impl Eq for QueryError
Source§impl Error for QueryError
impl Error for QueryError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()