pub enum ErrorKind {
Show 13 variants UnexpectedEof, NotATocFile { file: String, }, NotASectionFile { file: String, }, TocFileMissing { dir: String, }, MalformedData(Cow<'static, str>), MalformedOneNoteData(Cow<'static, str>), MalformedOneNoteFileData(Cow<'static, str>), MalformedOneStoreData(Cow<'static, str>), MalformedFssHttpBData(Cow<'static, str>), InvalidUuid { err: Error, }, IO { err: Error, }, Utf16Error { err: FromUtf16Error, }, Utf16MissingNull { err: MissingNulError<u16>, },
}
Expand description

Details about a parsing error

Variants

UnexpectedEof

Hit the end of the OneNote file before it was expected.

NotATocFile

Fields

file: String

The parser was asked to process a table-of-contents file that turned out not to be one.

NotASectionFile

Fields

file: String

The parser was asked to process a section file that turned out not to be one.

TocFileMissing

Fields

dir: String

When parsing a section group the table-of-contents file for this group was found to be missing.

MalformedData(Cow<'static, str>)

Malformed data was encountered when parsing the OneNote file.

MalformedOneNoteData(Cow<'static, str>)

Malformed data was encountered when parsing the OneNote data.

MalformedOneNoteFileData(Cow<'static, str>)

Malformed data was encountered when parsing the OneNote file contents.

MalformedOneStoreData(Cow<'static, str>)

Malformed data was encountered when parsing the OneStore data.

MalformedFssHttpBData(Cow<'static, str>)

Malformed data was encountered when parsing the FSSHTTPB data.

InvalidUuid

Fields

err: Error

A malformed UUID was encountered

IO

Fields

err: Error

An I/O failure was encountered during parsing.

Utf16Error

Fields

A malformed UTF-16 string was encountered during parsing.

Utf16MissingNull

Fields

A UTF-16 string without a null terminator was encountered during parsing.

Trait Implementations

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0: use the Display impl or to_string()
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.