[][src]Struct electron_sys::SystemPreferences

#[repr(transparent)]
pub struct SystemPreferences { /* fields omitted */ }

Methods

impl SystemPreferences[src]

#[must_use] pub fn ask_for_media_access(&self, media_type: &str) -> Promise[src]

impl SystemPreferences[src]

impl SystemPreferences[src]

impl SystemPreferences[src]

impl SystemPreferences[src]

impl SystemPreferences[src]

pub fn get_color(&self, color: &str) -> JsString[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]

impl SystemPreferences[src]

impl SystemPreferences[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]

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]

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]

impl SystemPreferences[src]

impl SystemPreferences[src]

impl SystemPreferences[src]

impl SystemPreferences[src]

impl SystemPreferences[src]

Trait Implementations

impl AsRef<EventEmitter> for SystemPreferences[src]

impl AsRef<JsValue> for SystemPreferences[src]

impl AsRef<SystemPreferences> for SystemPreferences[src]

impl Deref for SystemPreferences[src]

type Target = EventEmitter

The resulting type after dereferencing.

impl From<JsValue> for SystemPreferences[src]

impl From<SystemPreferences> for JsValue[src]

impl From<SystemPreferences> for 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

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

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

impl JsCast for SystemPreferences[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

impl WasmDescribe for SystemPreferences[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.