pub struct SettingsApi<P: CheckedPermissions> { /* private fields */ }Implementations§
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_system_theme<S>(&self, context: &mut ServerContext<S>)
pub fn server_subscribe_system_theme<S>(&self, context: &mut ServerContext<S>)
Subscribes to the crate::global::SystemTheme setting
Sourcepub fn get_system_theme(&self) -> SystemThemewhere
P: MessageAllowed<GetSystemTheme>,
pub fn get_system_theme(&self) -> SystemThemewhere
P: MessageAllowed<GetSystemTheme>,
Gets the value of the crate::global::SystemTheme setting
Sourcepub fn set_system_theme(&self, value: impl Into<SystemTheme>)where
P: MessageAllowed<SetSystemTheme>,
pub fn set_system_theme(&self, value: impl Into<SystemTheme>)where
P: MessageAllowed<SetSystemTheme>,
Sets the value of the crate::global::SystemTheme setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_screen_brightness<S>(
&self,
context: &mut ServerContext<S>,
)where
S: Server + ScalarEventHandler<ScreenBrightness>,
P: MessageAllowed<SubscribeScreenBrightness>,
pub fn server_subscribe_screen_brightness<S>(
&self,
context: &mut ServerContext<S>,
)where
S: Server + ScalarEventHandler<ScreenBrightness>,
P: MessageAllowed<SubscribeScreenBrightness>,
Subscribes to the crate::global::ScreenBrightness setting
Sourcepub fn get_screen_brightness(&self) -> ScreenBrightnesswhere
P: MessageAllowed<GetScreenBrightness>,
pub fn get_screen_brightness(&self) -> ScreenBrightnesswhere
P: MessageAllowed<GetScreenBrightness>,
Gets the value of the crate::global::ScreenBrightness setting
Sourcepub fn set_screen_brightness(&self, value: impl Into<ScreenBrightness>)where
P: MessageAllowed<SetScreenBrightness>,
pub fn set_screen_brightness(&self, value: impl Into<ScreenBrightness>)where
P: MessageAllowed<SetScreenBrightness>,
Sets the value of the crate::global::ScreenBrightness setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_onboarding_status<S>(
&self,
context: &mut ServerContext<S>,
)where
S: Server + ArchiveEventHandler<OnboardingStatus>,
P: MessageAllowed<SubscribeOnboardingStatus>,
pub fn server_subscribe_onboarding_status<S>(
&self,
context: &mut ServerContext<S>,
)where
S: Server + ArchiveEventHandler<OnboardingStatus>,
P: MessageAllowed<SubscribeOnboardingStatus>,
Subscribes to the crate::global::OnboardingStatus setting
Sourcepub fn get_onboarding_status(&self) -> Option<OnboardingStatus>where
P: MessageAllowed<GetOnboardingStatus>,
pub fn get_onboarding_status(&self) -> Option<OnboardingStatus>where
P: MessageAllowed<GetOnboardingStatus>,
Gets the value of the crate::global::OnboardingStatus setting
Sourcepub fn set_onboarding_status(&self, value: impl Into<OnboardingStatus>)where
P: MessageAllowed<SetOnboardingStatus>,
pub fn set_onboarding_status(&self, value: impl Into<OnboardingStatus>)where
P: MessageAllowed<SetOnboardingStatus>,
Sets the value of the crate::global::OnboardingStatus setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_locale<S>(&self, context: &mut ServerContext<S>)
pub fn server_subscribe_locale<S>(&self, context: &mut ServerContext<S>)
Subscribes to the crate::global::Locale setting
Sourcepub fn get_locale(&self) -> Localewhere
P: MessageAllowed<GetLocale>,
pub fn get_locale(&self) -> Localewhere
P: MessageAllowed<GetLocale>,
Gets the value of the crate::global::Locale setting
Sourcepub fn set_locale(&self, value: impl Into<Locale>)where
P: MessageAllowed<SetLocale>,
pub fn set_locale(&self, value: impl Into<Locale>)where
P: MessageAllowed<SetLocale>,
Sets the value of the crate::global::Locale setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_device_name<S>(&self, context: &mut ServerContext<S>)
pub fn server_subscribe_device_name<S>(&self, context: &mut ServerContext<S>)
Subscribes to the crate::global::DeviceName setting
Sourcepub fn get_device_name(&self) -> DeviceNamewhere
P: MessageAllowed<GetDeviceName>,
pub fn get_device_name(&self) -> DeviceNamewhere
P: MessageAllowed<GetDeviceName>,
Gets the value of the crate::global::DeviceName setting
Sourcepub fn set_device_name(&self, value: impl Into<DeviceName>)where
P: MessageAllowed<SetDeviceName>,
pub fn set_device_name(&self, value: impl Into<DeviceName>)where
P: MessageAllowed<SetDeviceName>,
Sets the value of the crate::global::DeviceName setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_show_security_words<S>(
&self,
context: &mut ServerContext<S>,
)where
S: Server + ScalarEventHandler<ShowSecurityWords>,
P: MessageAllowed<SubscribeShowSecurityWords>,
pub fn server_subscribe_show_security_words<S>(
&self,
context: &mut ServerContext<S>,
)where
S: Server + ScalarEventHandler<ShowSecurityWords>,
P: MessageAllowed<SubscribeShowSecurityWords>,
Subscribes to the crate::global::ShowSecurityWords setting
Sourcepub fn get_show_security_words(&self) -> ShowSecurityWordswhere
P: MessageAllowed<GetShowSecurityWords>,
pub fn get_show_security_words(&self) -> ShowSecurityWordswhere
P: MessageAllowed<GetShowSecurityWords>,
Gets the value of the crate::global::ShowSecurityWords setting
Sourcepub fn set_show_security_words(&self, value: impl Into<ShowSecurityWords>)where
P: MessageAllowed<SetShowSecurityWords>,
pub fn set_show_security_words(&self, value: impl Into<ShowSecurityWords>)where
P: MessageAllowed<SetShowSecurityWords>,
Sets the value of the crate::global::ShowSecurityWords setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_auto_lock<S>(&self, context: &mut ServerContext<S>)
pub fn server_subscribe_auto_lock<S>(&self, context: &mut ServerContext<S>)
Subscribes to the crate::global::AutoLock setting
Sourcepub fn get_auto_lock(&self) -> AutoLockwhere
P: MessageAllowed<GetAutoLock>,
pub fn get_auto_lock(&self) -> AutoLockwhere
P: MessageAllowed<GetAutoLock>,
Gets the value of the crate::global::AutoLock setting
Sourcepub fn set_auto_lock(&self, value: impl Into<AutoLock>)where
P: MessageAllowed<SetAutoLock>,
pub fn set_auto_lock(&self, value: impl Into<AutoLock>)where
P: MessageAllowed<SetAutoLock>,
Sets the value of the crate::global::AutoLock setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_envoy_time_sync<S>(
&self,
context: &mut ServerContext<S>,
)
pub fn server_subscribe_envoy_time_sync<S>( &self, context: &mut ServerContext<S>, )
Subscribes to the crate::global::EnvoyTimeSync setting
Sourcepub fn get_envoy_time_sync(&self) -> EnvoyTimeSyncwhere
P: MessageAllowed<GetEnvoyTimeSync>,
pub fn get_envoy_time_sync(&self) -> EnvoyTimeSyncwhere
P: MessageAllowed<GetEnvoyTimeSync>,
Gets the value of the crate::global::EnvoyTimeSync setting
Sourcepub fn set_envoy_time_sync(&self, value: impl Into<EnvoyTimeSync>)where
P: MessageAllowed<SetEnvoyTimeSync>,
pub fn set_envoy_time_sync(&self, value: impl Into<EnvoyTimeSync>)where
P: MessageAllowed<SetEnvoyTimeSync>,
Sets the value of the crate::global::EnvoyTimeSync setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_use_standard_time_format<S>(
&self,
context: &mut ServerContext<S>,
)
pub fn server_subscribe_use_standard_time_format<S>( &self, context: &mut ServerContext<S>, )
Subscribes to the crate::global::UseStandardTimeFormat setting
Sourcepub fn get_use_standard_time_format(&self) -> UseStandardTimeFormatwhere
P: MessageAllowed<GetUseStandardTimeFormat>,
pub fn get_use_standard_time_format(&self) -> UseStandardTimeFormatwhere
P: MessageAllowed<GetUseStandardTimeFormat>,
Gets the value of the crate::global::UseStandardTimeFormat setting
Sourcepub fn set_use_standard_time_format(
&self,
value: impl Into<UseStandardTimeFormat>,
)where
P: MessageAllowed<SetUseStandardTimeFormat>,
pub fn set_use_standard_time_format(
&self,
value: impl Into<UseStandardTimeFormat>,
)where
P: MessageAllowed<SetUseStandardTimeFormat>,
Sets the value of the crate::global::UseStandardTimeFormat setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_time_zone<S>(&self, context: &mut ServerContext<S>)
pub fn server_subscribe_time_zone<S>(&self, context: &mut ServerContext<S>)
Subscribes to the crate::global::TimeZone setting
Sourcepub fn get_time_zone(&self) -> TimeZonewhere
P: MessageAllowed<GetTimeZone>,
pub fn get_time_zone(&self) -> TimeZonewhere
P: MessageAllowed<GetTimeZone>,
Gets the value of the crate::global::TimeZone setting
Sourcepub fn set_time_zone(&self, value: impl Into<TimeZone>)where
P: MessageAllowed<SetTimeZone>,
pub fn set_time_zone(&self, value: impl Into<TimeZone>)where
P: MessageAllowed<SetTimeZone>,
Sets the value of the crate::global::TimeZone setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_debug_touch<S>(&self, context: &mut ServerContext<S>)
pub fn server_subscribe_debug_touch<S>(&self, context: &mut ServerContext<S>)
Subscribes to the crate::global::DebugTouch setting
Sourcepub fn get_debug_touch(&self) -> DebugTouchwhere
P: MessageAllowed<GetDebugTouch>,
pub fn get_debug_touch(&self) -> DebugTouchwhere
P: MessageAllowed<GetDebugTouch>,
Gets the value of the crate::global::DebugTouch setting
Sourcepub fn set_debug_touch(&self, value: impl Into<DebugTouch>)where
P: MessageAllowed<SetDebugTouch>,
pub fn set_debug_touch(&self, value: impl Into<DebugTouch>)where
P: MessageAllowed<SetDebugTouch>,
Sets the value of the crate::global::DebugTouch setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_airlock_mode<S>(&self, context: &mut ServerContext<S>)
pub fn server_subscribe_airlock_mode<S>(&self, context: &mut ServerContext<S>)
Subscribes to the crate::global::AirlockMode setting
Sourcepub fn get_airlock_mode(&self) -> AirlockModewhere
P: MessageAllowed<GetAirlockMode>,
pub fn get_airlock_mode(&self) -> AirlockModewhere
P: MessageAllowed<GetAirlockMode>,
Gets the value of the crate::global::AirlockMode setting
Sourcepub fn set_airlock_mode(&self, value: impl Into<AirlockMode>)where
P: MessageAllowed<SetAirlockMode>,
pub fn set_airlock_mode(&self, value: impl Into<AirlockMode>)where
P: MessageAllowed<SetAirlockMode>,
Sets the value of the crate::global::AirlockMode setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_touch_offset<S>(&self, context: &mut ServerContext<S>)
pub fn server_subscribe_touch_offset<S>(&self, context: &mut ServerContext<S>)
Subscribes to the crate::global::TouchOffset setting
Sourcepub fn get_touch_offset(&self) -> TouchOffsetwhere
P: MessageAllowed<GetTouchOffset>,
pub fn get_touch_offset(&self) -> TouchOffsetwhere
P: MessageAllowed<GetTouchOffset>,
Gets the value of the crate::global::TouchOffset setting
Sourcepub fn set_touch_offset(&self, value: impl Into<TouchOffset>)where
P: MessageAllowed<SetTouchOffset>,
pub fn set_touch_offset(&self, value: impl Into<TouchOffset>)where
P: MessageAllowed<SetTouchOffset>,
Sets the value of the crate::global::TouchOffset setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_magic_backup_enabled<S>(
&self,
context: &mut ServerContext<S>,
)where
S: Server + ScalarEventHandler<MagicBackupEnabled>,
P: MessageAllowed<SubscribeMagicBackupEnabled>,
pub fn server_subscribe_magic_backup_enabled<S>(
&self,
context: &mut ServerContext<S>,
)where
S: Server + ScalarEventHandler<MagicBackupEnabled>,
P: MessageAllowed<SubscribeMagicBackupEnabled>,
Subscribes to the crate::global::MagicBackupEnabled setting
Sourcepub fn get_magic_backup_enabled(&self) -> MagicBackupEnabledwhere
P: MessageAllowed<GetMagicBackupEnabled>,
pub fn get_magic_backup_enabled(&self) -> MagicBackupEnabledwhere
P: MessageAllowed<GetMagicBackupEnabled>,
Gets the value of the crate::global::MagicBackupEnabled setting
Sourcepub fn set_magic_backup_enabled(&self, value: impl Into<MagicBackupEnabled>)where
P: MessageAllowed<SetMagicBackupEnabled>,
pub fn set_magic_backup_enabled(&self, value: impl Into<MagicBackupEnabled>)where
P: MessageAllowed<SetMagicBackupEnabled>,
Sets the value of the crate::global::MagicBackupEnabled setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_nfc_enabled<S>(&self, context: &mut ServerContext<S>)
pub fn server_subscribe_nfc_enabled<S>(&self, context: &mut ServerContext<S>)
Subscribes to the crate::global::NfcEnabled setting
Sourcepub fn get_nfc_enabled(&self) -> NfcEnabledwhere
P: MessageAllowed<GetNfcEnabled>,
pub fn get_nfc_enabled(&self) -> NfcEnabledwhere
P: MessageAllowed<GetNfcEnabled>,
Gets the value of the crate::global::NfcEnabled setting
Sourcepub fn set_nfc_enabled(&self, value: impl Into<NfcEnabled>)where
P: MessageAllowed<SetNfcEnabled>,
pub fn set_nfc_enabled(&self, value: impl Into<NfcEnabled>)where
P: MessageAllowed<SetNfcEnabled>,
Sets the value of the crate::global::NfcEnabled setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_bluetooth_enabled<S>(
&self,
context: &mut ServerContext<S>,
)where
S: Server + ScalarEventHandler<BluetoothEnabled>,
P: MessageAllowed<SubscribeBluetoothEnabled>,
pub fn server_subscribe_bluetooth_enabled<S>(
&self,
context: &mut ServerContext<S>,
)where
S: Server + ScalarEventHandler<BluetoothEnabled>,
P: MessageAllowed<SubscribeBluetoothEnabled>,
Subscribes to the crate::global::BluetoothEnabled setting
Sourcepub fn get_bluetooth_enabled(&self) -> BluetoothEnabledwhere
P: MessageAllowed<GetBluetoothEnabled>,
pub fn get_bluetooth_enabled(&self) -> BluetoothEnabledwhere
P: MessageAllowed<GetBluetoothEnabled>,
Gets the value of the crate::global::BluetoothEnabled setting
Sourcepub fn set_bluetooth_enabled(&self, value: impl Into<BluetoothEnabled>)where
P: MessageAllowed<SetBluetoothEnabled>,
pub fn set_bluetooth_enabled(&self, value: impl Into<BluetoothEnabled>)where
P: MessageAllowed<SetBluetoothEnabled>,
Sets the value of the crate::global::BluetoothEnabled setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_camera_enabled<S>(&self, context: &mut ServerContext<S>)
pub fn server_subscribe_camera_enabled<S>(&self, context: &mut ServerContext<S>)
Subscribes to the crate::global::CameraEnabled setting
Sourcepub fn get_camera_enabled(&self) -> CameraEnabledwhere
P: MessageAllowed<GetCameraEnabled>,
pub fn get_camera_enabled(&self) -> CameraEnabledwhere
P: MessageAllowed<GetCameraEnabled>,
Gets the value of the crate::global::CameraEnabled setting
Sourcepub fn set_camera_enabled(&self, value: impl Into<CameraEnabled>)where
P: MessageAllowed<SetCameraEnabled>,
pub fn set_camera_enabled(&self, value: impl Into<CameraEnabled>)where
P: MessageAllowed<SetCameraEnabled>,
Sets the value of the crate::global::CameraEnabled setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_usb_enabled<S>(&self, context: &mut ServerContext<S>)
pub fn server_subscribe_usb_enabled<S>(&self, context: &mut ServerContext<S>)
Subscribes to the crate::global::UsbEnabled setting
Sourcepub fn get_usb_enabled(&self) -> UsbEnabledwhere
P: MessageAllowed<GetUsbEnabled>,
pub fn get_usb_enabled(&self) -> UsbEnabledwhere
P: MessageAllowed<GetUsbEnabled>,
Gets the value of the crate::global::UsbEnabled setting
Sourcepub fn set_usb_enabled(&self, value: impl Into<UsbEnabled>)where
P: MessageAllowed<SetUsbEnabled>,
pub fn set_usb_enabled(&self, value: impl Into<UsbEnabled>)where
P: MessageAllowed<SetUsbEnabled>,
Sets the value of the crate::global::UsbEnabled setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
Sourcepub fn server_subscribe_developer_mode<S>(&self, context: &mut ServerContext<S>)
pub fn server_subscribe_developer_mode<S>(&self, context: &mut ServerContext<S>)
Subscribes to the crate::global::DeveloperMode setting
Sourcepub fn get_developer_mode(&self) -> Option<DeveloperMode>where
P: MessageAllowed<GetDeveloperMode>,
pub fn get_developer_mode(&self) -> Option<DeveloperMode>where
P: MessageAllowed<GetDeveloperMode>,
Gets the value of the crate::global::DeveloperMode setting
Sourcepub fn set_developer_mode(&self, value: impl Into<DeveloperMode>)where
P: MessageAllowed<SetDeveloperMode>,
pub fn set_developer_mode(&self, value: impl Into<DeveloperMode>)where
P: MessageAllowed<SetDeveloperMode>,
Sets the value of the crate::global::DeveloperMode setting
Source§impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
pub fn get_prime_color(&self) -> SystemThemewhere
P: MessageAllowed<GetPrimeColor>,
pub fn flush_settings(&self)where
P: MessageAllowed<FlushAll>,
pub fn wait_for_onboarding_complete(&self)where
P: 'static + MessageAllowed<SubscribeOnboardingStatus>,
pub fn lookup_timezone(&self, name: String, offset_minutes: i32) -> TimeZonewhere
P: MessageAllowed<LookupTimeZone>,
Trait Implementations§
Source§impl<P: Clone + CheckedPermissions> Clone for SettingsApi<P>
impl<P: Clone + CheckedPermissions> Clone for SettingsApi<P>
Source§fn clone(&self) -> SettingsApi<P>
fn clone(&self) -> SettingsApi<P>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more