pub enum LoadError {
Show 17 variants
NativeBackendUnavailable {
tldr_topic: Option<String>,
},
EmptyName,
InvalidManualSection,
TldrManualSection {
section: String,
},
InvalidSource,
ConflictingSourceSelectors,
EmptyMarkdownPath,
UnsupportedInputFormat {
path: String,
},
InvalidSelector {
field: &'static str,
error: ScopeTextError,
},
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
Invalid loading input or failure to acquire readable local content.
Variants§
Native input was selected but this build does not enable the roff backend.
EmptyName
A document selector was empty after trimming.
InvalidManualSection
A native manual category was empty or malformed.
TldrManualSection
A tldr command query was qualified by a non-command manual section.
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.
InvalidSelector
A document selector or source violated its bounded loading contract.
Fields
error: ScopeTextErrorPrecise bound or character violation.
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§
impl Eq for LoadError
Source§impl Error for LoadError
impl Error for LoadError
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()