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

Struct

UpdateKioskPolicy

pub struct UpdateKioskPolicy {
    pub auto_lock_enabled: Option<bool>,
    pub control_center_enabled: Option<bool>,
    pub home_button_enabled: Option<bool>,
    pub power_button_enabled: Option<bool>,
}

Fields

auto_lock_enabled: Option<bool>control_center_enabled: Option<bool>home_button_enabled: Option<bool>power_button_enabled: Option<bool>

Implementations

impl UpdateKioskPolicy

pub fn all(enabled: bool) -> Self

Permission: not needed

pub fn set_auto_lock(self, enabled: bool) -> Self

Permission: not needed

pub fn set_control_center(self, enabled: bool) -> Self

Permission: not needed

pub fn set_home_button(self, enabled: bool) -> Self

Permission: not needed

pub fn set_power_button(self, enabled: bool) -> Self

Permission: not needed

Trait Implementations

impl AsScalar<1> for UpdateKioskPolicy

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

impl Clone for UpdateKioskPolicy

fn clone(&self) -> UpdateKioskPolicy

Returns a duplicate of the value. Read more
1.0.0

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl Debug for UpdateKioskPolicy

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

Formats the value using the given formatter. Read more

impl Default for UpdateKioskPolicy

fn default() -> UpdateKioskPolicy

Returns the “default value” for a type. Read more

impl FromScalar<1> for UpdateKioskPolicy

fn from_scalar([flags]: [u32; 1]) -> Self

impl MessageId for UpdateKioskPolicy

const ID: MessageId = 58usize

unique message identifier

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

target server name

impl Scalar for UpdateKioskPolicy

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

impl Copy for UpdateKioskPolicy

Auto Trait Implementations

impl Freeze for UpdateKioskPolicy

impl RefUnwindSafe for UpdateKioskPolicy

impl Send for UpdateKioskPolicy

impl Sync for UpdateKioskPolicy

impl Unpin for UpdateKioskPolicy

impl UnsafeUnpin for UpdateKioskPolicy

impl UnwindSafe for UpdateKioskPolicy