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

Struct

InjectKey

pub struct InjectKey {
    pub is_pressed: bool,
    pub key: Key,
}
Expand description

Injects a key press or release event into the active app as if it came from the keyboard. Works on both hardware and simulator — used by the passport-drive debug bridge.

Fields

is_pressed: boolkey: Key

Trait Implementations

impl AsScalar<3> for InjectKey

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

impl Debug for InjectKey

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

Formats the value using the given formatter. Read more

impl FromScalar<3> for InjectKey

fn from_scalar([is_pressed, kind, val]: [u32; 3]) -> Self

impl MessageId for InjectKey

const ID: MessageId = 56usize

unique message identifier

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

target server name

impl Scalar for InjectKey

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

Auto Trait Implementations

impl Freeze for InjectKey

impl RefUnwindSafe for InjectKey

impl Send for InjectKey

impl Sync for InjectKey

impl Unpin for InjectKey

impl UnsafeUnpin for InjectKey

impl UnwindSafe for InjectKey