pub(crate) trait WorkerNavigatorMethods<D>where
D: DomTypes,{
Show 17 methods
// Required methods
fn Permissions(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::Permissions>>;
fn HardwareConcurrency(&self) -> u64;
fn Gpu(&self, cx: &mut JSContext) -> Root<Dom<<D as DomTypes>::GPU>>;
fn AppCodeName(&self) -> DOMString;
fn AppName(&self) -> DOMString;
fn AppVersion(&self) -> DOMString;
fn Platform(&self) -> DOMString;
fn Product(&self) -> DOMString;
fn ProductSub(&self) -> DOMString;
fn TaintEnabled(&self) -> bool;
fn UserAgent(&self) -> DOMString;
fn Vendor(&self) -> DOMString;
fn VendorSub(&self) -> DOMString;
fn Language(&self) -> DOMString;
fn Languages(&self, cx: &mut JSContext, retval: MutableHandle<'_, Value>);
fn OnLine(&self) -> bool;
fn Storage(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::StorageManager>>;
}Required Methods§
fn Permissions( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::Permissions>>
fn HardwareConcurrency(&self) -> u64
fn Gpu(&self, cx: &mut JSContext) -> Root<Dom<<D as DomTypes>::GPU>>
fn AppCodeName(&self) -> DOMString
fn AppName(&self) -> DOMString
fn AppVersion(&self) -> DOMString
fn Platform(&self) -> DOMString
fn Product(&self) -> DOMString
fn ProductSub(&self) -> DOMString
fn TaintEnabled(&self) -> bool
fn UserAgent(&self) -> DOMString
fn Vendor(&self) -> DOMString
fn VendorSub(&self) -> DOMString
fn Language(&self) -> DOMString
fn Languages(&self, cx: &mut JSContext, retval: MutableHandle<'_, Value>)
fn OnLine(&self) -> bool
fn Storage( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::StorageManager>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".