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

Struct

InjectPowerButton

pub struct InjectPowerButton(pub bool);
Expand description

Injects a power button press or release into gui-server’s power-button state machine.

Tuple Fields

0: bool

Trait Implementations

impl AsScalar<4> for InjectPowerButton

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

impl Debug for InjectPowerButton

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

Formats the value using the given formatter. Read more

impl FromScalar<4> for InjectPowerButton

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

impl MessageId for InjectPowerButton

const ID: MessageId = 60usize

unique message identifier

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

target server name

impl Scalar for InjectPowerButton

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

Auto Trait Implementations

impl Freeze for InjectPowerButton

impl RefUnwindSafe for InjectPowerButton

impl Send for InjectPowerButton

impl Sync for InjectPowerButton

impl Unpin for InjectPowerButton

impl UnsafeUnpin for InjectPowerButton

impl UnwindSafe for InjectPowerButton