[][src]Struct web_sys::WorkerNavigator

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

The WorkerNavigator class.

MDN Documentation

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

Methods

impl WorkerNavigator[src]

pub fn connection(&self) -> Result<NetworkInformation, JsValue>[src]

Getter for the connection field of this object.

MDN Documentation

This API requires the following crate features to be activated: NetworkInformation, WorkerNavigator

impl WorkerNavigator[src]

pub fn media_capabilities(&self) -> MediaCapabilities[src]

Getter for the mediaCapabilities field of this object.

MDN Documentation

This API requires the following crate features to be activated: MediaCapabilities, WorkerNavigator

impl WorkerNavigator[src]

pub fn gpu(&self) -> Gpu[src]

Getter for the gpu field of this object.

MDN Documentation

This API requires the following crate features to be activated: Gpu, WorkerNavigator

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

impl WorkerNavigator[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: WorkerNavigator

impl WorkerNavigator[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: WorkerNavigator

impl WorkerNavigator[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: WorkerNavigator

impl WorkerNavigator[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: WorkerNavigator

impl WorkerNavigator[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: WorkerNavigator

impl WorkerNavigator[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: WorkerNavigator

impl WorkerNavigator[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: WorkerNavigator

impl WorkerNavigator[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: WorkerNavigator

impl WorkerNavigator[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: WorkerNavigator

impl WorkerNavigator[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: WorkerNavigator

impl WorkerNavigator[src]

pub fn storage(&self) -> StorageManager[src]

Getter for the storage field of this object.

MDN Documentation

This API requires the following crate features to be activated: StorageManager, WorkerNavigator

impl WorkerNavigator[src]

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

The taintEnabled() method.

MDN Documentation

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

Trait Implementations

impl AsRef<JsValue> for WorkerNavigator[src]

impl AsRef<Object> for WorkerNavigator[src]

impl AsRef<WorkerNavigator> for WorkerNavigator[src]

impl Clone for WorkerNavigator[src]

impl Debug for WorkerNavigator[src]

impl Deref for WorkerNavigator[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for WorkerNavigator[src]

impl From<JsValue> for WorkerNavigator[src]

impl From<WorkerNavigator> for JsValue[src]

impl From<WorkerNavigator> for Object[src]

impl FromWasmAbi for WorkerNavigator[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 WorkerNavigator[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 WorkerNavigator[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 WorkerNavigator[src]

impl OptionFromWasmAbi for WorkerNavigator[src]

impl OptionIntoWasmAbi for WorkerNavigator[src]

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

impl PartialEq<WorkerNavigator> for WorkerNavigator[src]

impl RefFromWasmAbi for WorkerNavigator[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<WorkerNavigator>

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 WorkerNavigator[src]

impl StructuralPartialEq for WorkerNavigator[src]

impl WasmDescribe for WorkerNavigator[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> 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.