Struct cdp::input::DispatchTouchEventCommand
[−]
[src]
pub struct DispatchTouchEventCommand {
pub ty: DispatchTouchEventCommandType,
pub touch_points: Vec<TouchPoint>,
pub modifiers: Option<i32>,
pub timestamp: Option<TimeSinceEpoch>,
}[Experimental] Dispatches a touch event to the page.
Command Input.dispatchTouchEvent
Domain Module: cdp::input
Command Struct: cdp::input::DispatchTouchEventCommand
Response Struct: cdp::input::DispatchTouchEventResponse
Fields
ty: DispatchTouchEventCommandType
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>
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<i32>
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.
Trait Implementations
impl Clone for DispatchTouchEventCommand[src]
fn clone(&self) -> DispatchTouchEventCommand[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for DispatchTouchEventCommand[src]
impl PartialEq for DispatchTouchEventCommand[src]
fn eq(&self, __arg_0: &DispatchTouchEventCommand) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &DispatchTouchEventCommand) -> bool[src]
This method tests for !=.
impl CdpCommand for DispatchTouchEventCommand[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "Input.dispatchTouchEvent"
impl SerializeCdpCommand for DispatchTouchEventCommand[src]
fn command_name(&self) -> &str[src]
fn serialize_command_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, [src]
S: Serializer,
impl<'de> DeserializeCdpCommand<'de> for DispatchTouchEventCommand[src]
fn deserialize_command<D>(
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>, [src]
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,