pub enum OpsInputEvent {
PointerMove {
x: f32,
y: f32,
timestamp_ms: f64,
},
PointerDown {
x: f32,
y: f32,
button: String,
timestamp_ms: f64,
},
PointerUp {
x: f32,
y: f32,
button: String,
timestamp_ms: f64,
},
Wheel {
x: f32,
y: f32,
dx: f32,
dy: f32,
timestamp_ms: f64,
},
KeyDown {
key: String,
code: String,
modifiers: u32,
timestamp_ms: f64,
},
KeyUp {
key: String,
code: String,
modifiers: u32,
timestamp_ms: f64,
},
InsertText {
text: String,
timestamp_ms: f64,
},
}Variants§
PointerMove
PointerDown
PointerUp
Wheel
KeyDown
KeyUp
InsertText
A whole string pasted by the operator (clipboard → Input.insertText). Inserted at the focused element’s caret in one shot — the operator’s clipboard never reaches the target browser, so we relay the text itself rather than a Ctrl/⌘+V keystroke (which would paste the target’s own, unrelated clipboard).
Trait Implementations§
Source§impl Clone for OpsInputEvent
impl Clone for OpsInputEvent
Source§fn clone(&self) -> OpsInputEvent
fn clone(&self) -> OpsInputEvent
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 OpsInputEvent
impl Debug for OpsInputEvent
Source§impl<'de> Deserialize<'de> for OpsInputEvent
impl<'de> Deserialize<'de> for OpsInputEvent
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
Auto Trait Implementations§
impl Freeze for OpsInputEvent
impl RefUnwindSafe for OpsInputEvent
impl Send for OpsInputEvent
impl Sync for OpsInputEvent
impl Unpin for OpsInputEvent
impl UnsafeUnpin for OpsInputEvent
impl UnwindSafe for OpsInputEvent
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