pub struct ButtonEvent {
pub occurred_at: Timestamp,
pub recognized_at: Timestamp,
pub kind: ButtonEventKind,
}Expand description
Domain event emitted by the recognition pipeline.
Fields§
§occurred_at: TimestampLogical time of the state change, deadline, or final tap release.
recognized_at: TimestampTime at which the framework emitted this event.
kind: ButtonEventKindImplementations§
Source§impl ButtonEvent
impl ButtonEvent
pub const fn state(edge: ControlEdge) -> Self
pub fn gesture( control: ControlId, kind: GestureKind, occurred_at: Timestamp, recognized_at: Timestamp, ) -> Self
Trait Implementations§
Source§impl Clone for ButtonEvent
impl Clone for ButtonEvent
Source§impl Debug for ButtonEvent
impl Debug for ButtonEvent
impl Eq for ButtonEvent
Source§impl From<&ButtonEvent> for InputTiming
impl From<&ButtonEvent> for InputTiming
Source§fn from(event: &ButtonEvent) -> Self
fn from(event: &ButtonEvent) -> Self
Converts to this type from the input type.
Source§impl Hash for ButtonEvent
impl Hash for ButtonEvent
Source§impl PartialEq for ButtonEvent
impl PartialEq for ButtonEvent
impl StructuralPartialEq for ButtonEvent
Auto Trait Implementations§
impl Freeze for ButtonEvent
impl RefUnwindSafe for ButtonEvent
impl Send for ButtonEvent
impl Sync for ButtonEvent
impl Unpin for ButtonEvent
impl UnsafeUnpin for ButtonEvent
impl UnwindSafe for ButtonEvent
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