Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

Struct

InjectTouch

pub struct InjectTouch(pub Touch);
Expand description

Injects a touch event into the GUI event pipeline as if it came from hardware. Works on both hardware and simulator.

Tuple Fields

0: Touch

Trait Implementations

impl AsScalar<4> for InjectTouch

fn as_scalar(&self) -> [u32; 4]

impl Debug for InjectTouch

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

impl FromScalar<4> for InjectTouch

fn from_scalar(value: [u32; 4]) -> Self

impl MessageId for InjectTouch

const ID: MessageId = 55usize

unique message identifier

const SERVER: &'static str = "os/gui-server"

target server name

impl Scalar for InjectTouch

fn to_message(&self) -> ScalarMessage
where Self: Sized,

Auto Trait Implementations

impl Freeze for InjectTouch

impl RefUnwindSafe for InjectTouch

impl Send for InjectTouch

impl Sync for InjectTouch

impl Unpin for InjectTouch

impl UnsafeUnpin for InjectTouch

impl UnwindSafe for InjectTouch