Enum InteractionAttempt
#[non_exhaustive]pub enum InteractionAttempt {
Press,
Held,
}Expand description
What caused a client interaction mapping to act on this tick.
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.
Press
A queued press of the mapping.
Held
A repeat or continuation from a mapping that is still held.
Trait Implementations§
§impl Clone for InteractionAttempt
impl Clone for InteractionAttempt
§fn clone(&self) -> InteractionAttempt
fn clone(&self) -> InteractionAttempt
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 InteractionAttempt
§impl Debug for InteractionAttempt
impl Debug for InteractionAttempt
impl Eq for InteractionAttempt
§impl PartialEq for InteractionAttempt
impl PartialEq for InteractionAttempt
impl StructuralPartialEq for InteractionAttempt
Auto Trait Implementations§
impl Freeze for InteractionAttempt
impl RefUnwindSafe for InteractionAttempt
impl Send for InteractionAttempt
impl Sync for InteractionAttempt
impl Unpin for InteractionAttempt
impl UnsafeUnpin for InteractionAttempt
impl UnwindSafe for InteractionAttempt
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