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
The parser was asked to process a table-of-contents file that turned out not to be one.
NotASectionFile
The parser was asked to process a section file that turned out not to be one.
TocFileMissing
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
A malformed UUID was encountered
IO
An I/O failure was encountered during parsing.
Utf16Error
A malformed UTF-16 string was encountered during parsing.
Fields
err: FromUtf16Error
Utf16MissingNull
A UTF-16 string without a null terminator was encountered during parsing.
Fields
err: MissingNulError<u16>
Trait Implementations§
Source§impl Error for ErrorKind
impl Error for ErrorKind
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 From<FromUtf16Error> for ErrorKind
impl From<FromUtf16Error> for ErrorKind
Source§fn from(source: FromUtf16Error) -> Self
fn from(source: FromUtf16Error) -> Self
Auto Trait Implementations§
impl Freeze for ErrorKind
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more