pub enum Error {
XmlError(Error),
Utf8Error(Utf8Error),
IoError(Error),
EndOfDocument,
InvalidElementClosed,
InvalidElement,
}
Expand description
Our main error type.
Variants§
XmlError(Error)
An error from quick_xml.
Utf8Error(Utf8Error)
An UTF-8 conversion error.
IoError(Error)
An I/O error, from std::io.
EndOfDocument
An error which is returned when the end of the document was reached prematurely.
InvalidElementClosed
An error which is returned when an element is closed when it shouldn’t be
InvalidElement
An error which is returned when an elemet’s name contains more than one colon
Trait Implementations§
source§impl Fail for Error
impl Fail for Error
source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read more