Enum plist::Error [] [src]

pub enum Error {
    InvalidMagicBytes,
    InvalidTrailer,
    VersionNotSupported(Option<String>),
    InvalidKeyObject,
    InvalidBoolean,
    InvalidIntegerSize,
    ObjectNotSupported(u8),
    UnexpectedXmlEof,
    UnexpectedXmlEvent(XmlEvent),
    XmlObjectNotSupported(String),
    XmlError(Error),
    IoError(Error),
    IntError(ParseIntError),
    FloatError(ParseFloatError),
    DateError(ParseError),
    Base64Error(FromBase64Error),
    Utf8Error(Utf8Error),
    Utf16Error(FromUtf16Error),
}

The errors that can occur when parsing a property list.

Variants

The binary property list does not have valid magic bytes.

The binary property list trailer does not contain valid values.

The binary property list does not have a valid version. The only valid version is currently "00".

The binary property list has a key object that is not a string.

The binary property list has an invalid nibble for a boolean.

The binary property list has an unsupported integer size for an offset, length, or count integer. This parser only supports u8, u16, u32 and u64 integers.

The binary property list has an unsupported object type.

The XML property list encountered an early end of the document.

The XML property list contains an unexpected XML event.

The XML property list contains an unsupported object type.

The XML property list contains invalid XML.

The reader experienced an I/O error.

The XML property list contains an invalid integer value

The XML property list contains an invalid float value

The XML property list contains an invalid date value

The XML property list contains an invalid data value

The property list contains an invalid UTF-8 string value

The property list contains an invalid UTF-16 string value

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<ParseIntError> for Error
[src]

Performs the conversion.

impl From<ParseFloatError> for Error
[src]

Performs the conversion.

impl From<ParseError> for Error
[src]

Performs the conversion.

impl From<FromBase64Error> for Error
[src]

Performs the conversion.

impl From<Utf8Error> for Error
[src]

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

Performs the conversion.

impl From<FromUtf16Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more