#[non_exhaustive]pub enum MotionEventKind {
Completed,
Canceled,
Interrupted(InterruptionReason),
Removed(RemovalReason),
}Expand description
The lifecycle change represented by a MotionEvent.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Completed
The playback reached its completed state.
Canceled
The playback was canceled.
Interrupted(InterruptionReason)
The playback stopped because another operation superseded it.
Removed(RemovalReason)
The owning motion was removed from runtime storage.
Trait Implementations§
Source§impl Clone for MotionEventKind
impl Clone for MotionEventKind
Source§fn clone(&self) -> MotionEventKind
fn clone(&self) -> MotionEventKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MotionEventKind
Source§impl Debug for MotionEventKind
impl Debug for MotionEventKind
impl Eq for MotionEventKind
Source§impl Hash for MotionEventKind
impl Hash for MotionEventKind
Source§impl PartialEq for MotionEventKind
impl PartialEq for MotionEventKind
impl StructuralPartialEq for MotionEventKind
Auto Trait Implementations§
impl Freeze for MotionEventKind
impl RefUnwindSafe for MotionEventKind
impl Send for MotionEventKind
impl Sync for MotionEventKind
impl Unpin for MotionEventKind
impl UnsafeUnpin for MotionEventKind
impl UnwindSafe for MotionEventKind
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