[][src]Enum prc::xml::ReadError

pub enum ReadError {
    QuickXml(Error),
    ParseError,
    UnknownOpenTag(String),
    UnmatchedCloseTag(String),
    MissingHash,
    ExpectedStructTag,
    ExpectedOpenOrCloseTag(String),
    ExpectedCloseTag(String),
    ExpectedText,
    UnhandledEvent(QuickXmlEventType),
}

Types of errors encountered the XML param file

Variants

QuickXml(Error)

quick-xml error, such as mismatched tags, non-utf8 text, broken syntax, etc

ParseError

Value parsing error

UnknownOpenTag(String)

Opening tag has an unknown name

UnmatchedCloseTag(String)

Close tag name doesn't match open tag name

MissingHash

For child nodes of structs, the 'hash' attribute is not found

ExpectedStructTag

For the first tag after XML declaration, tag must be 'struct'

ExpectedOpenOrCloseTag(String)

After reading a struct or list tag, reader either expects a new open tag or that param's own close tag

ExpectedCloseTag(String)

For after reading a value-type param and its value, expects the close tag

ExpectedText

After reading the open tag for a value-type param, expects the text value

UnhandledEvent(QuickXmlEventType)

Any XML event not handled

Trait Implementations

impl Debug for ReadError[src]

impl From<Error> for ReadError[src]

impl From<Error> for ReadError[src]

impl From<Utf8Error> for ReadError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.