#[non_exhaustive]
pub enum Error {
Show 28 variants UnrecognizedFileFormat, InvalidPageSize(u32), PageReferenceOutOfRange(u32), StreamNotFound(u32), StreamNameNotFound, InvalidStreamLength(&'static str), IoError(Error), UnexpectedEof, UnimplementedFeature(&'static str), GlobalSymbolsNotFound, SymbolTooShort, UnimplementedSymbolKind(u16), InvalidTypeInformationHeader(&'static str), TypeTooShort, TypeNotFound(u32), TypeNotIndexed(u32, u32), UnimplementedTypeKind(u16), NotACrossModuleRef(u32), CrossModuleRefNotFound(u32), UnexpectedNumericPrefix(u16), AddressMapNotFound, ScrollError(Error), UnimplementedDebugSubsection(u32), UnimplementedFileChecksumKind(u8), InvalidFileChecksumOffset(u32), LinesNotFound, InvalidCompressedAnnotation, UnknownBinaryAnnotation(u32),
}
Expand description

An error that occurred while reading or parsing the PDB.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

UnrecognizedFileFormat

The input data was not recognized as a MSF (PDB) file.

§

InvalidPageSize(u32)

The MSF header specifies an invalid page size.

§

PageReferenceOutOfRange(u32)

MSF referred to page number out of range.

This likely indicates file corruption.

§

StreamNotFound(u32)

The requested stream is not stored in this file.

§

StreamNameNotFound

A stream requested by name was not found.

§

InvalidStreamLength(&'static str)

Invalid length or alignment of a stream.

§

IoError(Error)

An IO error occurred while reading from the data source.

§

UnexpectedEof

Unexpectedly reached end of input.

§

UnimplementedFeature(&'static str)

This data might be understandable, but the code needed to understand it hasn’t been written.

§

GlobalSymbolsNotFound

The global shared symbol table is missing.

§

SymbolTooShort

A symbol record’s length value was impossibly small.

§

UnimplementedSymbolKind(u16)

Support for symbols of this kind is not implemented.

§

InvalidTypeInformationHeader(&'static str)

The type information header was invalid.

§

TypeTooShort

A type record’s length value was impossibly small.

§

TypeNotFound(u32)

Type or Id not found.

§

TypeNotIndexed(u32, u32)

Type or Id not indexed – the requested type (.0) is larger than the maximum index covered by the ItemFinder (.1).

§

UnimplementedTypeKind(u16)

Support for types of this kind is not implemented.

§

NotACrossModuleRef(u32)

Type index is not a cross module reference.

§

CrossModuleRefNotFound(u32)

Cross module reference not found in imports.

§

UnexpectedNumericPrefix(u16)

Variable-length numeric parsing encountered an unexpected prefix.

§

AddressMapNotFound

Required mapping for virtual addresses (OMAP) was not found.

§

ScrollError(Error)

A parse error from scroll.

§

UnimplementedDebugSubsection(u32)

This debug subsection kind is unknown or unimplemented.

§

UnimplementedFileChecksumKind(u8)

This source file checksum kind is unknown or unimplemented.

§

InvalidFileChecksumOffset(u32)

There is no source file checksum at the given offset.

§

LinesNotFound

The lines table is missing.

§

InvalidCompressedAnnotation

A binary annotation was compressed incorrectly.

§

UnknownBinaryAnnotation(u32)

An unknown binary annotation was encountered.

Trait Implementations§

§

impl Debug for Error

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for Error

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for Error

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<Error> for CfiError

source§

fn from(e: Error) -> CfiError

Converts to this type from the input type.
§

impl From<Error> for Error

§

fn from(e: Error) -> Error

Converts to this type from the input type.
§

impl From<Error> for Error

§

fn from(e: Error) -> Error

Converts to this type from the input type.
source§

impl From<Error> for PdbError

source§

fn from(e: Error) -> PdbError

Converts to this type from the input type.

Auto Trait Implementations§

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<I, T> ExtractContext<I, ()> for T

§

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
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Indentable for Twhere T: Display,

§

fn indented(self, indent: &str) -> Indented<'_, Self>

Wrap this object so that its Display representation is indented with the given indent. Each non-empty line of the formatted output will be prefixed with the indent. Read more
§

fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>

Wrap this object so that its Display representation is indented with the given indent. Each non-empty line except for the first of the formatted output will be prefixed with the indent. Read more
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<I> RecreateContext<I> for I

§

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
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> Send for Twhere T: ?Sized,

§

impl<T> Sync for Twhere T: ?Sized,