pub enum ErrorKind {
Fmt(Error),
Io(Error),
Serde(Error),
Msg(String),
MustNotBeEmpty,
IllegalCharacter,
Conflict,
UnexpectedBlock,
UnexpectedInline,
UnknownFormat,
// some variants omitted
}
Expand description
The kind of an error.
Variants§
Fmt(Error)
Io(Error)
Serde(Error)
Msg(String)
A convenient variant for String.
MustNotBeEmpty
An empty string is not allowed here.
IllegalCharacter
An illegal character was found parsing a content string.
Conflict
The item you are adding would conflict with an existing item.
UnexpectedBlock
The inner content you are adding would conflict with an existing content item.
UnexpectedInline
The inner content you are adding would conflict with an existing content item.
UnknownFormat
The provided value is not a known document format.
Implementations§
Trait Implementations§
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
Mutably borrows from an owned value. Read more