#[non_exhaustive]pub enum WebInput {
Click {
x: Points,
y: Points,
},
Text(String),
Key(WebKey),
}Expand description
Input for a web view’s page, delivered as the user’s hands give it: the
page’s events are trusted (isTrusted), which scripts it injects cannot
make (WebView’s sendInput). Needs capabilities.webview.input.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Click
A primary click at a point of the page’s viewport: CSS pixels, which
are points at the page’s own zoom (what getBoundingClientRect()
reports).
Text(String)
Text typed into what has the page’s keyboard focus.
Key(WebKey)
A key pressed and released.
Trait Implementations§
impl StructuralPartialEq for WebInput
Auto Trait Implementations§
impl Forget for WebInput
impl Freeze for WebInput
impl Move for WebInput
impl RefUnwindSafe for WebInput
impl Send for WebInputwhere
RawVecInner: Send,
impl Sync for WebInputwhere
RawVecInner: Sync,
impl Unpin for WebInput
impl UnsafeUnpin for WebInput
impl UnwindSafe for WebInputwhere
RawVecInner: UnwindSafe,
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