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
InvalidMagicBytes
The binary property list does not have valid magic bytes.
InvalidTrailer
The binary property list trailer does not contain valid values.
VersionNotSupported(Option<String>)
The binary property list does not have a valid version. The only valid version is currently "00".
InvalidKeyObject
The binary property list has a key object that is not a string.
InvalidBoolean
The binary property list has an invalid nibble for a boolean.
InvalidIntegerSize
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.
ObjectNotSupported(u8)
The binary property list has an unsupported object type.
UnexpectedXmlEof
The XML property list encountered an early end of the document.
UnexpectedXmlEvent(XmlEvent)
The XML property list contains an unexpected XML event.
XmlObjectNotSupported(String)
The XML property list contains an unsupported object type.
XmlError(Error)
The XML property list contains invalid XML.
IoError(Error)
The reader experienced an I/O error.
IntError(ParseIntError)
The XML property list contains an invalid integer value
FloatError(ParseFloatError)
The XML property list contains an invalid float value
DateError(ParseError)
The XML property list contains an invalid date value
Base64Error(FromBase64Error)
The XML property list contains an invalid data value
Utf8Error(Utf8Error)
The property list contains an invalid UTF-8 string value
Utf16Error(FromUtf16Error)
The property list contains an invalid UTF-16 string value
Trait Implementations
impl Debug for Error
[src]
impl From<Error> for Error
[src]
impl From<ParseIntError> for Error
[src]
fn from(error: ParseIntError) -> Error
Performs the conversion.
impl From<ParseFloatError> for Error
[src]
fn from(error: ParseFloatError) -> Error
Performs the conversion.
impl From<ParseError> for Error
[src]
fn from(error: ParseError) -> Error
Performs the conversion.
impl From<FromBase64Error> for Error
[src]
fn from(error: FromBase64Error) -> Error
Performs the conversion.
impl From<Utf8Error> for Error
[src]
impl From<FromUtf8Error> for Error
[src]
fn from(error: FromUtf8Error) -> Error
Performs the conversion.
impl From<FromUtf16Error> for Error
[src]
fn from(error: FromUtf16Error) -> Error
Performs the conversion.