pub struct QueuedEvent {
pub event: Event,
pub timestamp: Instant,
}
Expand description
Input event that happened at some point in the past, waiting to be used as a
trigger for an ActionState
, or to be timed out.
Fields§
§event: Event
The event itself.
timestamp: Instant
Timestamp of when the event happened.
Implementations§
Source§impl QueuedEvent
impl QueuedEvent
Sourcepub fn timed_out(&self, timestamp: Instant) -> bool
pub fn timed_out(&self, timestamp: Instant) -> bool
Returns true if the time between this event and the given timestamp is
greater than EVENT_QUEUE_TIMEOUT
.
Auto Trait Implementations§
impl Freeze for QueuedEvent
impl RefUnwindSafe for QueuedEvent
impl Send for QueuedEvent
impl Sync for QueuedEvent
impl Unpin for QueuedEvent
impl UnwindSafe for QueuedEvent
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