pub struct DispatchMouseEventParams<'a> { /* private fields */ }Expand description
Dispatches a mouse event to the page.
Implementations§
Source§impl<'a> DispatchMouseEventParams<'a>
impl<'a> DispatchMouseEventParams<'a>
pub fn builder( type_: impl Into<Cow<'a, str>>, x: f64, y: f64, ) -> DispatchMouseEventParamsBuilder<'a>
pub fn type_(&self) -> &str
pub fn x(&self) -> f64
pub fn y(&self) -> f64
pub fn modifiers(&self) -> Option<i64>
pub fn timestamp(&self) -> Option<&TimeSinceEpoch>
pub fn clickCount(&self) -> Option<u64>
pub fn force(&self) -> Option<f64>
pub fn tangentialPressure(&self) -> Option<f64>
pub fn tiltX(&self) -> Option<f64>
pub fn tiltY(&self) -> Option<f64>
pub fn twist(&self) -> Option<i64>
pub fn deltaX(&self) -> Option<f64>
pub fn deltaY(&self) -> Option<f64>
pub fn pointerType(&self) -> Option<&str>
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for DispatchMouseEventParams<'a>
impl<'a> CdpCommand<'a> for DispatchMouseEventParams<'a>
Source§impl<'a> Clone for DispatchMouseEventParams<'a>
impl<'a> Clone for DispatchMouseEventParams<'a>
Source§fn clone(&self) -> DispatchMouseEventParams<'a>
fn clone(&self) -> DispatchMouseEventParams<'a>
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<'a> Debug for DispatchMouseEventParams<'a>
impl<'a> Debug for DispatchMouseEventParams<'a>
Source§impl<'a> Default for DispatchMouseEventParams<'a>
impl<'a> Default for DispatchMouseEventParams<'a>
Source§fn default() -> DispatchMouseEventParams<'a>
fn default() -> DispatchMouseEventParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for DispatchMouseEventParams<'a>
impl<'de, 'a> Deserialize<'de> for DispatchMouseEventParams<'a>
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<'a> Freeze for DispatchMouseEventParams<'a>
impl<'a> RefUnwindSafe for DispatchMouseEventParams<'a>
impl<'a> Send for DispatchMouseEventParams<'a>
impl<'a> Sync for DispatchMouseEventParams<'a>
impl<'a> Unpin for DispatchMouseEventParams<'a>
impl<'a> UnsafeUnpin for DispatchMouseEventParams<'a>
impl<'a> UnwindSafe for DispatchMouseEventParams<'a>
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