pub enum DigitalTouchError {
ProtobufError(Error),
UnknownDigitalTouchKind(i32),
ArraysDoNotMatch(&'static str, usize, &'static str, usize),
InvalidStrokesLength(usize, usize),
ArchiveError(Error),
}Expand description
Errors that can happen when parsing digital touch data.
Variants§
ProtobufError(Error)
Wraps an error returned by the protobuf parser.
UnknownDigitalTouchKind(i32)
The TouchKind discriminant was not a value we know how to parse.
ArraysDoNotMatch(&'static str, usize, &'static str, usize)
Two parallel arrays that are expected to describe the same events had different lengths (name, length, other name, other length).
InvalidStrokesLength(usize, usize)
A length-prefixed stroke ran past the end of its buffer (needed, available).
ArchiveError(Error)
Wraps an error returned while reading an embedded NSKeyedArchiver archive.
Trait Implementations§
Source§impl Debug for DigitalTouchError
impl Debug for DigitalTouchError
Source§impl Display for DigitalTouchError
impl Display for DigitalTouchError
Source§impl Error for DigitalTouchError
impl Error for DigitalTouchError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for DigitalTouchError
impl !UnwindSafe for DigitalTouchError
impl Freeze for DigitalTouchError
impl Send for DigitalTouchError
impl Sync for DigitalTouchError
impl Unpin for DigitalTouchError
impl UnsafeUnpin for DigitalTouchError
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