pub enum PlistParseError {
Show 14 variants
MissingKey(String),
NoValueAtIndex(usize),
InvalidType(String, String),
InvalidTypeIndex(usize, String),
InvalidDictionarySize(usize, usize),
UidOutOfRange(u64),
NoPayload,
WrongMessageType,
InvalidEditedMessage(String),
TypedStreamError(TypedStreamError),
HandwritingError(HandwritingError),
DigitalTouchError(DigitalTouchError),
PollError,
RecursionLimit,
}Expand description
Errors that can happen when parsing the plist data stored in the payload_data field
Variants§
MissingKey(String)
Expected key was not found in the plist data
NoValueAtIndex(usize)
No value was found at the specified index
InvalidType(String, String)
Value had an incorrect type for the specified key
InvalidTypeIndex(usize, String)
Value had an incorrect type at the specified index
InvalidDictionarySize(usize, usize)
Dictionary has mismatched number of keys and values
UidOutOfRange(u64)
UID value cannot be represented as an object-table index on this target.
NoPayload
No payload data was found
WrongMessageType
Message is not of the expected type
InvalidEditedMessage(String)
Could not parse an edited message
TypedStreamError(TypedStreamError)
Error from typedstream parsing
HandwritingError(HandwritingError)
Error from handwriting data parsing
DigitalTouchError(DigitalTouchError)
Error from Digital Touch data parsing
PollError
Error parsing a poll message
RecursionLimit
Exceeded the maximum UID-reference resolution depth (likely a reference cycle)
Trait Implementations§
Source§impl Debug for PlistParseError
impl Debug for PlistParseError
Source§impl Display for PlistParseError
impl Display for PlistParseError
Source§impl Error for PlistParseError
impl Error for PlistParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<PlistParseError> for MessageError
impl From<PlistParseError> for MessageError
Source§fn from(err: PlistParseError) -> Self
fn from(err: PlistParseError) -> Self
Converts to this type from the input type.
Source§impl From<TypedStreamError> for PlistParseError
impl From<TypedStreamError> for PlistParseError
Source§fn from(error: TypedStreamError) -> Self
fn from(error: TypedStreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PlistParseError
impl !UnwindSafe for PlistParseError
impl Freeze for PlistParseError
impl Send for PlistParseError
impl Sync for PlistParseError
impl Unpin for PlistParseError
impl UnsafeUnpin for PlistParseError
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