Struct
SettingsApi
pub struct SettingsApi<P: CheckedPermissions> { /* private fields */ }Implementations
impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
pub 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
pub 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
impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
pub 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
pub 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
impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
pub 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
pub 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
impl<P: CheckedPermissions> SettingsApi<P>
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>,
pub fn server_subscribe_use_standard_time_format<S>(
&self,
context: &mut ServerContext<S>,
)where
S: Server + ScalarEventHandler<UseStandardTimeFormat>,
P: MessageAllowed<SubscribeUseStandardTimeFormat>,
Subscribes to the crate::global::UseStandardTimeFormat setting
pub 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
impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
pub 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
pub 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
impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
pub 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
pub 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
impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
pub 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
pub 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
impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
pub 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
pub 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
impl<P: CheckedPermissions> SettingsApi<P>
impl<P: CheckedPermissions> SettingsApi<P>
pub fn get_prime_color(&self) -> SystemThemewhere
P: MessageAllowed<GetPrimeColor>,
pub fn lookup_timezone(&self, name: String, offset_minutes: i32) -> TimeZonewhere
P: MessageAllowed<LookupTimeZone>,
Trait Implementations
impl<P: Clone + CheckedPermissions> Clone for SettingsApi<P>
impl<P: Clone + CheckedPermissions> Clone for SettingsApi<P>
fn clone(&self) -> SettingsApi<P>
fn clone(&self) -> SettingsApi<P>
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more