Enum symbolic_symcache::SymCacheErrorKind [−][src]
#[non_exhaustive]
pub enum SymCacheErrorKind {
BadFileMagic,
BadFileHeader,
BadSegment,
BadCacheFile,
UnsupportedVersion,
BadDebugFile,
MissingDebugSection,
MissingDebugInfo,
UnsupportedDebugKind,
ValueTooLarge(ValueKind),
TooManyValues(ValueKind),
WriteFailed,
}
Expand description
The error type for SymCacheError
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Invalid magic bytes in the symcache header.
Invalid flags or fields in the symcache header.
A segment could not be read, likely due to IO errors.
Contents in the symcache file are malformed.
The symcache version is not known.
The Object
contains invalid data and cannot be converted.
A required debug section is missing in the Object
file.
The Object
file was stripped of debug information.
The debug information in the Object
file is not supported.
A value cannot be written to symcache as it overflows the record size.
A value cannot be written to symcache as it overflows the segment counter.
Generic error when writing a symcache, most likely IO.
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SymCacheErrorKind
impl Send for SymCacheErrorKind
impl Sync for SymCacheErrorKind
impl Unpin for SymCacheErrorKind
impl UnwindSafe for SymCacheErrorKind
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
pub fn extract_context(self, _original_input: I)
pub fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more
impl<T> Indentable for T where
T: Display,
impl<T> Indentable for T where
T: Display,
fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
pub fn recreate_context(_original_input: I, tail: I) -> I
pub fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more