pub enum PlistParseError {
Show 13 variants
MissingKey(String),
NoValueAtIndex(usize),
InvalidType(String, String),
InvalidTypeIndex(usize, String),
InvalidDictionarySize(usize, usize),
NoPayload,
WrongMessageType,
InvalidEditedMessage(String),
StreamTypedError(StreamTypedError),
TypedStreamError(TypedStreamError),
HandwritingError(HandwritingError),
DigitalTouchError,
PollError,
}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
NoPayload
No payload data was found
WrongMessageType
Message is not of the expected type
InvalidEditedMessage(String)
Could not parse an edited message
StreamTypedError(StreamTypedError)
Error from stream typed parsing
TypedStreamError(TypedStreamError)
Error from typedstream parsing
HandwritingError(HandwritingError)
Error from handwriting data parsing
DigitalTouchError
Error parsing Digital Touch message
PollError
Error parsing a poll message
Trait Implementations§
Source§impl Debug for PlistParseError
impl Debug for PlistParseError
Source§impl Display for PlistParseError
impl Display for PlistParseError
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<StreamTypedError> for PlistParseError
impl From<StreamTypedError> for PlistParseError
Source§fn from(error: StreamTypedError) -> Self
fn from(error: StreamTypedError) -> 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 Freeze for PlistParseError
impl !RefUnwindSafe for PlistParseError
impl Send for PlistParseError
impl Sync for PlistParseError
impl Unpin for PlistParseError
impl !UnwindSafe 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