[−][src]Struct electron_sys::SystemPreferences
Methods
impl SystemPreferences[src]
#[must_use]
pub fn ask_for_media_access(&self, media_type: &str) -> Promise[src]
impl SystemPreferences[src]
pub fn can_prompt_touch_id(&self) -> bool[src]
impl SystemPreferences[src]
pub fn get_accent_color(&self) -> JsString[src]
impl SystemPreferences[src]
pub fn get_animation_settings(&self) -> AnimationSettings[src]
impl SystemPreferences[src]
pub fn get_app_level_appearance(&self) -> JsString[src]
impl SystemPreferences[src]
impl SystemPreferences[src]
pub fn get_media_access_status(&self, media_type: &str) -> JsString[src]
impl SystemPreferences[src]
pub fn get_system_color(&self, color: &str) -> JsString[src]
impl SystemPreferences[src]
pub fn get_user_default(&self, key: &str, kind: &str) -> JsValue[src]
impl SystemPreferences[src]
pub fn is_aero_glass_enabled(&self) -> bool[src]
impl SystemPreferences[src]
pub fn is_swipe_tracking_from_scroll_events_enabled(&self) -> bool[src]
impl SystemPreferences[src]
pub fn is_trusted_accessibility_client(&self, prompt: bool) -> bool[src]
impl SystemPreferences[src]
pub fn post_local_notification(&self, event: &str, user_info: &Object)[src]
impl SystemPreferences[src]
pub fn post_notification(
&self,
event: &str,
user_info: &Object,
deliver_immediately: Option<bool>
)[src]
&self,
event: &str,
user_info: &Object,
deliver_immediately: Option<bool>
)
impl SystemPreferences[src]
pub fn post_workspace_notification(&self, event: &str, user_info: &Object)[src]
impl SystemPreferences[src]
#[must_use]
pub fn prompt_touch_id(&self, reason: &str) -> Promise[src]
impl SystemPreferences[src]
pub fn register_defaults(&self, defaults: &Object)[src]
impl SystemPreferences[src]
pub fn remove_user_defaults(&self, key: &str)[src]
impl SystemPreferences[src]
pub fn set_user_defaults(&self, key: &str, kind: &str, value: &str)[src]
impl SystemPreferences[src]
pub fn subscribe_local_notification(
&self,
event: &str,
callback: &Function
) -> u32[src]
&self,
event: &str,
callback: &Function
) -> u32
impl SystemPreferences[src]
pub fn subscribe_notification(&self, event: &str, callback: &Function) -> u32[src]
impl SystemPreferences[src]
pub fn subscribe_workspace_notification(&self, event: &str, callback: &Function)[src]
impl SystemPreferences[src]
pub fn unsubscribe_local_notification(&self, id: u32)[src]
impl SystemPreferences[src]
pub fn unsubscribe_notification(&self, id: u32)[src]
impl SystemPreferences[src]
pub fn unsubscribe_workspace_notification(&self, id: u32)[src]
impl SystemPreferences[src]
pub fn app_level_appearance(&self) -> JsString[src]
impl SystemPreferences[src]
pub fn set_app_level_appearance(&self, value: JsString)[src]
impl SystemPreferences[src]
pub fn effective_appearance(&self) -> JsString[src]
Trait Implementations
impl AsRef<EventEmitter> for SystemPreferences[src]
fn as_ref(&self) -> &EventEmitter[src]
impl AsRef<JsValue> for SystemPreferences[src]
impl AsRef<SystemPreferences> for SystemPreferences[src]
fn as_ref(&self) -> &SystemPreferences[src]
impl Deref for SystemPreferences[src]
type Target = EventEmitter
The resulting type after dereferencing.
fn deref(&self) -> &EventEmitter[src]
impl From<JsValue> for SystemPreferences[src]
fn from(obj: JsValue) -> SystemPreferences[src]
impl From<SystemPreferences> for JsValue[src]
fn from(obj: SystemPreferences) -> JsValue[src]
impl From<SystemPreferences> for EventEmitter[src]
fn from(obj: SystemPreferences) -> EventEmitter[src]
impl FromWasmAbi for SystemPreferences[src]
type Abi = <JsValue as FromWasmAbi>::Abi
The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more
unsafe fn from_abi(js: Self::Abi) -> Self[src]
impl IntoWasmAbi for SystemPreferences[src]
type Abi = <JsValue as IntoWasmAbi>::Abi
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
fn into_abi(self) -> Self::Abi[src]
impl<'a> IntoWasmAbi for &'a SystemPreferences[src]
type Abi = <&'a JsValue as IntoWasmAbi>::Abi
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
fn into_abi(self) -> Self::Abi[src]
impl JsCast for SystemPreferences[src]
fn instanceof(val: &JsValue) -> bool[src]
fn unchecked_from_js(val: JsValue) -> Self[src]
fn unchecked_from_js_ref(val: &JsValue) -> &Self[src]
fn has_type<T>(&self) -> bool where
T: JsCast, [src]
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self> where
T: JsCast, [src]
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T> where
T: JsCast, [src]
T: JsCast,
fn unchecked_into<T>(self) -> T where
T: JsCast, [src]
T: JsCast,
fn unchecked_ref<T>(&self) -> &T where
T: JsCast, [src]
T: JsCast,
fn is_instance_of<T>(&self) -> bool where
T: JsCast, [src]
T: JsCast,
fn is_type_of(val: &JsValue) -> bool[src]
impl OptionFromWasmAbi for SystemPreferences[src]
impl OptionIntoWasmAbi for SystemPreferences[src]
impl<'a> OptionIntoWasmAbi for &'a SystemPreferences[src]
impl RefFromWasmAbi for SystemPreferences[src]
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to Self are recovered from.
type Anchor = ManuallyDrop<SystemPreferences>
The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor[src]
impl WasmDescribe for SystemPreferences[src]
Auto Trait Implementations
impl RefUnwindSafe for SystemPreferences
impl !Send for SystemPreferences
impl !Sync for SystemPreferences
impl Unpin for SystemPreferences
impl UnwindSafe for SystemPreferences
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi, [src]
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,