pub enum ErrorKind {
Show 14 variants
Io(Error),
UnexpectedEof,
Syntax(String),
InvalidName(String),
MissingAttribute(String),
UnexpectedElement(String),
UnexpectedAttribute(String),
InvalidValue(String),
UnclosedTag(String),
MismatchedTag {
expected: String,
found: String,
},
InvalidEscape(String),
InvalidUtf8,
Custom(String),
Unsupported(String),
}Expand description
The kind of error that occurred.
Variants marked Reserved are intentionally part of the stable public API for downstream constructors; this crate’s own parsing never emits them.
Variants§
Io(Error)
An I/O error occurred.
UnexpectedEof
Unexpected end of input.
Syntax(String)
Invalid XML syntax.
InvalidName(String)
Invalid XML name.
MissingAttribute(String)
Missing required attribute. Reserved.
UnexpectedElement(String)
Unexpected element. Reserved.
UnexpectedAttribute(String)
Unexpected attribute. Reserved.
InvalidValue(String)
Invalid value for type.
UnclosedTag(String)
Unclosed tag.
MismatchedTag
Mismatched closing tag.
InvalidEscape(String)
Invalid escape sequence.
InvalidUtf8
Invalid UTF-8.
Custom(String)
Custom error message.
Unsupported(String)
Unsupported operation.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ErrorKind
impl !UnwindSafe for ErrorKind
impl Freeze for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin 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