#[repr(C)]pub struct DetectedLongPress {
pub position: LogicalPosition,
pub duration_ms: u64,
pub callback_invoked: bool,
pub session_id: u64,
}Expand description
Result of long-press detection
Fields§
§position: LogicalPositionPosition where long press is happening
duration_ms: u64How long the button has been held (milliseconds)
callback_invoked: boolWhether the callback has already been invoked for this long press
session_id: u64Session ID this long press belongs to
Trait Implementations§
Source§impl Clone for DetectedLongPress
impl Clone for DetectedLongPress
Source§fn clone(&self) -> DetectedLongPress
fn clone(&self) -> DetectedLongPress
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 moreSource§impl Debug for DetectedLongPress
impl Debug for DetectedLongPress
Source§impl PartialEq for DetectedLongPress
impl PartialEq for DetectedLongPress
Source§fn eq(&self, other: &DetectedLongPress) -> bool
fn eq(&self, other: &DetectedLongPress) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DetectedLongPress
impl StructuralPartialEq for DetectedLongPress
Auto Trait Implementations§
impl Freeze for DetectedLongPress
impl RefUnwindSafe for DetectedLongPress
impl Send for DetectedLongPress
impl Sync for DetectedLongPress
impl Unpin for DetectedLongPress
impl UnsafeUnpin for DetectedLongPress
impl UnwindSafe for DetectedLongPress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more