Struct chromiumoxide::cdp::browser_protocol::input::DispatchTouchEventParams[][src]

pub struct DispatchTouchEventParams {
    pub type: DispatchTouchEventType,
    pub touch_points: Vec<TouchPoint, Global>,
    pub modifiers: Option<i64>,
    pub timestamp: Option<TimeSinceEpoch>,
}

Dispatches a touch event to the page. dispatchTouchEvent

Fields

type: DispatchTouchEventType

Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one.

touch_points: Vec<TouchPoint, Global>

Active touch points on the touch device. One event per any changed point (compared to previous touch event in a sequence) is generated, emulating pressing/moving/releasing points one by one.

modifiers: Option<i64>

Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).

timestamp: Option<TimeSinceEpoch>

Time at which the event occurred.

Implementations

impl DispatchTouchEventParams[src]

pub fn new(
    type: impl Into<DispatchTouchEventType>,
    touch_points: Vec<TouchPoint, Global>
) -> DispatchTouchEventParams
[src]

impl DispatchTouchEventParams[src]

impl DispatchTouchEventParams[src]

pub const IDENTIFIER: &'static str[src]

Trait Implementations

impl Clone for DispatchTouchEventParams[src]

impl Command for DispatchTouchEventParams[src]

type Response = DispatchTouchEventReturns

The type of the response this request triggers on the chromium server

impl Debug for DispatchTouchEventParams[src]

impl<'de> Deserialize<'de> for DispatchTouchEventParams[src]

impl Method for DispatchTouchEventParams[src]

impl MethodType for DispatchTouchEventParams[src]

impl PartialEq<DispatchTouchEventParams> for DispatchTouchEventParams[src]

impl Serialize for DispatchTouchEventParams[src]

impl StructuralPartialEq for DispatchTouchEventParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,