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§
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.
UnexpectedElement(String)
Unexpected element.
UnexpectedAttribute(String)
Unexpected attribute.
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 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