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
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
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
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
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
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
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
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
Source§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§
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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<P: Debug + CheckedPermissions> Debug for SettingsApi<P>
impl<P: Debug + CheckedPermissions> Debug for SettingsApi<P>
Source§impl<P: Default + CheckedPermissions> Default for SettingsApi<P>
impl<P: Default + CheckedPermissions> Default for SettingsApi<P>
Source§fn default() -> SettingsApi<P>
fn default() -> SettingsApi<P>
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>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.