[][src]Struct sauron::prelude::web_sys::Navigator

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

The Navigator class.

MDN Documentation

This API requires the following crate features to be activated: Navigator

Implementations

impl Navigator[src]

pub fn do_not_track(&self) -> String[src]

Getter for the doNotTrack field of this object.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn max_touch_points(&self) -> i32[src]

Getter for the maxTouchPoints field of this object.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn active_vr_displays(&self) -> Array[src]

Getter for the activeVRDisplays field of this object.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn hardware_concurrency(&self) -> f64[src]

Getter for the hardwareConcurrency field of this object.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn app_code_name(&self) -> Result<String, JsValue>[src]

Getter for the appCodeName field of this object.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn app_name(&self) -> String[src]

Getter for the appName field of this object.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn app_version(&self) -> Result<String, JsValue>[src]

Getter for the appVersion field of this object.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn platform(&self) -> Result<String, JsValue>[src]

Getter for the platform field of this object.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn user_agent(&self) -> Result<String, JsValue>[src]

Getter for the userAgent field of this object.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn product(&self) -> String[src]

Getter for the product field of this object.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn language(&self) -> Option<String>[src]

Getter for the language field of this object.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn languages(&self) -> Array[src]

Getter for the languages field of this object.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn on_line(&self) -> bool[src]

Getter for the onLine field of this object.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn get_gamepads(&self) -> Result<Array, JsValue>[src]

The getGamepads() method.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn get_vr_displays(&self) -> Result<Promise, JsValue>[src]

The getVRDisplays() method.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn request_midi_access(&self) -> Result<Promise, JsValue>[src]

The requestMIDIAccess() method.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn request_media_key_system_access(
    &self,
    key_system: &str,
    supported_configurations: &JsValue
) -> Promise
[src]

The requestMediaKeySystemAccess() method.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn send_beacon(&self, url: &str) -> Result<bool, JsValue>[src]

The sendBeacon() method.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn send_beacon_with_opt_buffer_source(
    &self,
    url: &str,
    data: Option<&Object>
) -> Result<bool, JsValue>
[src]

The sendBeacon() method.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn send_beacon_with_opt_u8_array(
    &self,
    url: &str,
    data: Option<&mut [u8]>
) -> Result<bool, JsValue>
[src]

The sendBeacon() method.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn send_beacon_with_opt_str(
    &self,
    url: &str,
    data: Option<&str>
) -> Result<bool, JsValue>
[src]

The sendBeacon() method.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn vibrate_with_duration(&self, duration: u32) -> bool[src]

The vibrate() method.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn vibrate_with_pattern(&self, pattern: &JsValue) -> bool[src]

The vibrate() method.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn register_content_handler(
    &self,
    mime_type: &str,
    url: &str,
    title: &str
) -> Result<(), JsValue>
[src]

The registerContentHandler() method.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn register_protocol_handler(
    &self,
    scheme: &str,
    url: &str,
    title: &str
) -> Result<(), JsValue>
[src]

The registerProtocolHandler() method.

MDN Documentation

This API requires the following crate features to be activated: Navigator

impl Navigator[src]

pub fn taint_enabled(&self) -> bool[src]

The taintEnabled() method.

MDN Documentation

This API requires the following crate features to be activated: Navigator

Methods from Deref<Target = Object>

pub fn constructor(&self) -> Function[src]

The constructor property returns a reference to the Object constructor function that created the instance object.

MDN documentation

pub fn has_own_property(&self, property: &JsValue) -> bool[src]

The hasOwnProperty() method returns a boolean indicating whether the object has the specified property as its own property (as opposed to inheriting it).

MDN documentation

pub fn is_prototype_of(&self, value: &JsValue) -> bool[src]

The isPrototypeOf() method checks if an object exists in another object's prototype chain.

MDN documentation

pub fn property_is_enumerable(&self, property: &JsValue) -> bool[src]

The propertyIsEnumerable() method returns a Boolean indicating whether the specified property is enumerable.

MDN documentation

pub fn to_locale_string(&self) -> JsString[src]

The toLocaleString() method returns a string representing the object. This method is meant to be overridden by derived objects for locale-specific purposes.

MDN documentation

pub fn to_string(&self) -> JsString[src]

The toString() method returns a string representing the object.

MDN documentation

pub fn value_of(&self) -> Object[src]

The valueOf() method returns the primitive value of the specified object.

MDN documentation

Trait Implementations

impl AsRef<JsValue> for Navigator[src]

impl AsRef<Navigator> for Navigator[src]

impl AsRef<Object> for Navigator[src]

impl Clone for Navigator[src]

impl Debug for Navigator[src]

impl Deref for Navigator[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for Navigator[src]

impl From<JsValue> for Navigator[src]

impl From<Navigator> for JsValue[src]

impl From<Navigator> for Object[src]

impl FromWasmAbi for Navigator[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<'a> IntoWasmAbi for &'a Navigator[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl IntoWasmAbi for Navigator[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for Navigator[src]

impl OptionFromWasmAbi for Navigator[src]

impl OptionIntoWasmAbi for Navigator[src]

impl<'a> OptionIntoWasmAbi for &'a Navigator[src]

impl PartialEq<Navigator> for Navigator[src]

impl RefFromWasmAbi for Navigator[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<Navigator>

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 StructuralEq for Navigator[src]

impl StructuralPartialEq for Navigator[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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.