#[non_exhaustive]pub enum WheelAction {
Pause {
duration: Duration,
},
Scroll {
duration: Option<Duration>,
x: i64,
y: i64,
delta_x: i64,
delta_y: i64,
},
}Expand description
An action performed with a wheel device.
See 15.4.4 Wheel Actions of the WebDriver standard.
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.
Pause
Pause action.
Useful for adding pauses between other key actions.
Scroll
Wheel scroll event.
Fields
Trait Implementations§
Source§impl Clone for WheelAction
impl Clone for WheelAction
Source§fn clone(&self) -> WheelAction
fn clone(&self) -> WheelAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WheelAction
impl RefUnwindSafe for WheelAction
impl Send for WheelAction
impl Sync for WheelAction
impl Unpin for WheelAction
impl UnsafeUnpin for WheelAction
impl UnwindSafe for WheelAction
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