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

Struct

SettingsApi

pub struct SettingsApi<P: CheckedPermissions> { /* private fields */ }

Implementations

impl<P: CheckedPermissions> SettingsApi<P>

pub fn server_subscribe_system_theme<S>(&self, context: &mut ServerContext<S>)
where S: Server + ScalarEventHandler<SystemTheme>, P: MessageAllowed<SubscribeSystemTheme>,

Permission: os/settings / SubscribeSystemTheme

Permission group: settings.ui-essentials

Required signature: thirdParty

Approval: autoAllow

Subscribes to the crate::global::SystemTheme setting

pub fn get_system_theme(&self) -> SystemTheme
where P: MessageAllowed<GetSystemTheme>,

Permission: os/settings / GetSystemTheme

Permission group: settings.ui-essentials

Required signature: thirdParty

Approval: autoAllow

Gets the value of the crate::global::SystemTheme setting

impl<P: CheckedPermissions> SettingsApi<P>

pub fn server_subscribe_locale<S>(&self, context: &mut ServerContext<S>)
where S: Server + ScalarEventHandler<Locale>, P: MessageAllowed<SubscribeLocale>,

Permission: os/settings / SubscribeLocale

Permission group: settings.ui-essentials

Required signature: thirdParty

Approval: autoAllow

Subscribes to the crate::global::Locale setting

pub fn get_locale(&self) -> Locale
where P: MessageAllowed<GetLocale>,

Permission: os/settings / GetLocale

Permission group: settings.ui-essentials

Required signature: thirdParty

Approval: autoAllow

Gets the value of the crate::global::Locale setting

impl<P: CheckedPermissions> SettingsApi<P>

pub fn server_subscribe_device_name<S>(&self, context: &mut ServerContext<S>)
where S: Server + ArchiveEventHandler<DeviceName>, P: MessageAllowed<SubscribeDeviceName>,

Permission: os/settings / SubscribeDeviceName

Permission group: settings.ui-essentials

Required signature: thirdParty

Approval: autoAllow

Subscribes to the crate::global::DeviceName setting

pub fn get_device_name(&self) -> DeviceName
where P: MessageAllowed<GetDeviceName>,

Permission: os/settings / GetDeviceName

Permission group: settings.ui-essentials

Required signature: thirdParty

Approval: autoAllow

Gets the value of the crate::global::DeviceName setting

impl<P: CheckedPermissions> SettingsApi<P>

pub fn server_subscribe_use_standard_time_format<S>( &self, context: &mut ServerContext<S>, )
where S: Server + ScalarEventHandler<UseStandardTimeFormat>, P: MessageAllowed<SubscribeUseStandardTimeFormat>,

Permission: os/settings / SubscribeUseStandardTimeFormat

Permission group: settings.ui-essentials

Required signature: thirdParty

Approval: autoAllow

Subscribes to the crate::global::UseStandardTimeFormat setting

pub fn get_use_standard_time_format(&self) -> UseStandardTimeFormat
where P: MessageAllowed<GetUseStandardTimeFormat>,

Permission: os/settings / GetUseStandardTimeFormat

Permission group: settings.ui-essentials

Required signature: thirdParty

Approval: autoAllow

Gets the value of the crate::global::UseStandardTimeFormat setting

impl<P: CheckedPermissions> SettingsApi<P>

pub fn server_subscribe_time_zone<S>(&self, context: &mut ServerContext<S>)
where S: Server + ArchiveEventHandler<TimeZone>, P: MessageAllowed<SubscribeTimeZone>,

Permission: os/settings / SubscribeTimeZone

Permission group: settings.ui-essentials

Required signature: thirdParty

Approval: autoAllow

Subscribes to the crate::global::TimeZone setting

pub fn get_time_zone(&self) -> TimeZone
where P: MessageAllowed<GetTimeZone>,

Permission: os/settings / GetTimeZone

Permission group: settings.ui-essentials

Required signature: thirdParty

Approval: autoAllow

Gets the value of the crate::global::TimeZone setting

impl<P: CheckedPermissions> SettingsApi<P>

pub fn server_subscribe_debug_touch<S>(&self, context: &mut ServerContext<S>)
where S: Server + ScalarEventHandler<DebugTouch>, P: MessageAllowed<SubscribeDebugTouch>,

Permission: os/settings / SubscribeDebugTouch

Permission group: settings.ui-essentials

Required signature: thirdParty

Approval: autoAllow

Subscribes to the crate::global::DebugTouch setting

pub fn get_debug_touch(&self) -> DebugTouch
where P: MessageAllowed<GetDebugTouch>,

Permission: os/settings / GetDebugTouch

Permission group: settings.ui-essentials

Required signature: thirdParty

Approval: autoAllow

Gets the value of the crate::global::DebugTouch setting

impl<P: CheckedPermissions> SettingsApi<P>

pub fn server_subscribe_airlock_mode<S>(&self, context: &mut ServerContext<S>)
where S: Server + ScalarEventHandler<AirlockMode>, P: MessageAllowed<SubscribeAirlockMode>,

Permission: os/settings / SubscribeAirlockMode

Permission group: device-connectivity.usb-device-status

Required signature: thirdParty

Approval: autoAllow

Subscribes to the crate::global::AirlockMode setting

pub fn get_airlock_mode(&self) -> AirlockMode
where P: MessageAllowed<GetAirlockMode>,

Permission: os/settings / GetAirlockMode

Permission group: device-connectivity.usb-device-status

Required signature: thirdParty

Approval: autoAllow

Gets the value of the crate::global::AirlockMode setting

impl<P: CheckedPermissions> SettingsApi<P>

pub fn server_subscribe_usb_enabled<S>(&self, context: &mut ServerContext<S>)
where S: Server + ScalarEventHandler<UsbEnabled>, P: MessageAllowed<SubscribeUsbEnabled>,

Permission: os/settings / SubscribeUsbEnabled

Permission group: device-connectivity.usb-device-status

Required signature: thirdParty

Approval: autoAllow

Subscribes to the crate::global::UsbEnabled setting

pub fn get_usb_enabled(&self) -> UsbEnabled
where P: MessageAllowed<GetUsbEnabled>,

Permission: os/settings / GetUsbEnabled

Permission group: device-connectivity.usb-device-status

Required signature: thirdParty

Approval: autoAllow

Gets the value of the crate::global::UsbEnabled setting

impl<P: CheckedPermissions> SettingsApi<P>

pub fn get_prime_color(&self) -> SystemTheme
where P: MessageAllowed<GetPrimeColor>,

Permission: os/settings / GetPrimeColor

Permission group: settings.ui-essentials

Required signature: thirdParty

Approval: autoAllow

pub fn lookup_timezone(&self, name: String, offset_minutes: i32) -> TimeZone
where P: MessageAllowed<LookupTimeZone>,

Permission: os/settings / LookupTimeZone

Permission group: settings.ui-essentials

Required signature: thirdParty

Approval: autoAllow

Trait Implementations

impl<P: Clone + CheckedPermissions> Clone for SettingsApi<P>

fn clone(&self) -> SettingsApi<P>

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<P: Debug + CheckedPermissions> Debug for SettingsApi<P>

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

Formats the value using the given formatter. Read more

impl<P: Default + CheckedPermissions> Default for SettingsApi<P>

fn default() -> SettingsApi<P>

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

Auto Trait Implementations

impl<P> Freeze for SettingsApi<P>

impl<P> RefUnwindSafe for SettingsApi<P>

impl<P> Send for SettingsApi<P>

impl<P> Sync for SettingsApi<P>

impl<P> Unpin for SettingsApi<P>

impl<P> UnsafeUnpin for SettingsApi<P>

impl<P> UnwindSafe for SettingsApi<P>