pub enum GestureError {
UnknownControl(ControlId),
TimeRegression {
control: ControlId,
previous: Timestamp,
now: Timestamp,
},
InvalidCausality {
control: ControlId,
occurred_at: Timestamp,
recognized_at: Timestamp,
},
UnexpectedEdge {
control: ControlId,
phase: ButtonPhase,
state: &'static str,
},
EventBeforePress {
control: ControlId,
},
MissingPressContext {
control: ControlId,
},
DeadlineOverflow {
control: ControlId,
},
InvalidTransition {
control: ControlId,
detail: String,
},
}Variants§
UnknownControl(ControlId)
TimeRegression
InvalidCausality
UnexpectedEdge
EventBeforePress
MissingPressContext
DeadlineOverflow
InvalidTransition
Trait Implementations§
Source§impl Clone for GestureError
impl Clone for GestureError
Source§impl Debug for GestureError
impl Debug for GestureError
Source§impl Display for GestureError
impl Display for GestureError
impl Eq for GestureError
Source§impl Error for GestureError
impl Error for GestureError
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 PartialEq for GestureError
impl PartialEq for GestureError
impl StructuralPartialEq for GestureError
Auto Trait Implementations§
impl Freeze for GestureError
impl RefUnwindSafe for GestureError
impl Send for GestureError
impl Sync for GestureError
impl Unpin for GestureError
impl UnsafeUnpin for GestureError
impl UnwindSafe for GestureError
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