pub enum SymCacheErrorKind {
BadFileMagic,
BadFileHeader,
BadSegment,
BadCacheFile,
UnsupportedVersion,
BadDebugFile,
MissingDebugSection,
MissingDebugInfo,
UnsupportedDebugKind,
ValueTooLarge(ValueKind),
TooManyValues(ValueKind),
WriteFailed,
}
Expand description
Variants of SymCacheError
.
Variants
BadFileMagic
Invalid magic bytes in the symcache header.
BadFileHeader
Invalid flags or fields in the symcache header.
BadSegment
A segment could not be read, likely due to IO errors.
BadCacheFile
Contents in the symcache file are malformed.
UnsupportedVersion
The symcache version is not known.
BadDebugFile
The Object
contains invalid data and cannot be converted.
MissingDebugSection
A required debug section is missing in the Object
file.
MissingDebugInfo
The Object
file was stripped of debug information.
UnsupportedDebugKind
The debug information in the Object
file is not supported.
ValueTooLarge(ValueKind)
A value cannot be written to symcache as it overflows the record size.
TooManyValues(ValueKind)
A value cannot be written to symcache as it overflows the segment counter.
WriteFailed
Generic error when writing a symcache, most likely IO.
Trait Implementations
sourceimpl Clone for SymCacheErrorKind
impl Clone for SymCacheErrorKind
sourcefn clone(&self) -> SymCacheErrorKind
fn clone(&self) -> SymCacheErrorKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SymCacheErrorKind
impl Debug for SymCacheErrorKind
sourceimpl Display for SymCacheErrorKind
impl Display for SymCacheErrorKind
sourceimpl Fail for SymCacheErrorKind
impl Fail for SymCacheErrorKind
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<SymCacheErrorKind> for SymCacheError
impl From<SymCacheErrorKind> for SymCacheError
sourcefn from(kind: SymCacheErrorKind) -> SymCacheError
fn from(kind: SymCacheErrorKind) -> SymCacheError
Converts to this type from the input type.
sourceimpl PartialEq<SymCacheErrorKind> for SymCacheErrorKind
impl PartialEq<SymCacheErrorKind> for SymCacheErrorKind
sourcefn eq(&self, other: &SymCacheErrorKind) -> bool
fn eq(&self, other: &SymCacheErrorKind) -> bool
impl Copy for SymCacheErrorKind
impl Eq for SymCacheErrorKind
impl StructuralEq for SymCacheErrorKind
impl StructuralPartialEq for SymCacheErrorKind
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more