pub struct EventManagerSnapshot {Show 14 fields
pub last_record: Option<EventRecordSnapshot>,
pub queue_probe: EventQueueProbeSnapshot,
pub queue_len: usize,
pub queued_event_types: Vec<u16>,
pub mouse_position: (i16, i16),
pub mouse_button: bool,
pub button_result: Option<bool>,
pub still_down_result: Option<bool>,
pub wait_mouse_up_result: Option<bool>,
pub key_map: [u8; 16],
pub lifecycle_activation_seen: bool,
pub lifecycle_update_seen: bool,
pub cursor_visible: bool,
pub cursor_level: i16,
}Expand description
Architecture-neutral Event Manager state exposed by deterministic fixture runners. This is intentionally semantic: callers can assert queue order, live input, lifecycle delivery, and cursor state on either CPU adapter.
Fields§
§last_record: Option<EventRecordSnapshot>§queue_probe: EventQueueProbeSnapshot§queue_len: usize§queued_event_types: Vec<u16>§mouse_position: (i16, i16)§still_down_result: Option<bool>§wait_mouse_up_result: Option<bool>§key_map: [u8; 16]§lifecycle_activation_seen: bool§lifecycle_update_seen: bool§cursor_visible: bool§cursor_level: i16Trait Implementations§
Source§impl Clone for EventManagerSnapshot
impl Clone for EventManagerSnapshot
Source§impl Debug for EventManagerSnapshot
impl Debug for EventManagerSnapshot
Source§impl<'de> Deserialize<'de> for EventManagerSnapshot
impl<'de> Deserialize<'de> for EventManagerSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EventManagerSnapshot
Source§impl PartialEq for EventManagerSnapshot
impl PartialEq for EventManagerSnapshot
Source§impl Serialize for EventManagerSnapshot
impl Serialize for EventManagerSnapshot
impl StructuralPartialEq for EventManagerSnapshot
Auto Trait Implementations§
impl Freeze for EventManagerSnapshot
impl RefUnwindSafe for EventManagerSnapshot
impl Send for EventManagerSnapshot
impl Sync for EventManagerSnapshot
impl Unpin for EventManagerSnapshot
impl UnsafeUnpin for EventManagerSnapshot
impl UnwindSafe for EventManagerSnapshot
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.