Enum symbolic_symcache::ErrorKind
source · #[non_exhaustive]pub enum ErrorKind {
}
Expand description
Errors returned while loading/parsing a serialized SymCache.
After a SymCache was successfully parsed via SymCache::parse
, an Error that occurs during
access of any data indicates either corruption of the serialized file, or a bug in the
converter/serializer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BufferNotAligned
The buffer is not correctly aligned.
This variant is currently unused.
HeaderTooSmall
The header’s size doesn’t match our expected size.
This variant is currently unused.
WrongEndianness
The file was generated by a system with different endianness.
WrongFormat
The file magic does not match.
WrongVersion
The format version in the header is wrong/unknown.
BadFormatLength
The self-advertised size of the buffer is not correct.
This variant is currently unused.
BadDebugFile
The debug file could not be converted to a symcache.
InvalidHeader
Header could not be parsed from the cache file.
InvalidFiles
File data could not be parsed from the cache file.
InvalidFunctions
Function data could not be parsed from the cache file.
InvalidSourceLocations
Source location data could not be parsed from the cache file.
InvalidRanges
Range data could not be parsed from the cache file.
UnexpectedStringBytes
Fields
The header claimed an incorrect number of string bytes.
Trait Implementations§
source§impl Error for ErrorKind
impl Error for ErrorKind
1.30.0 · 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
source§impl PartialEq for ErrorKind
impl PartialEq for ErrorKind
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralEq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.