pub trait NavigatorMethods<D>where
D: DomTypes,{
Show 37 methods
// Required methods
fn Credentials(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::CredentialsContainer>>;
fn Bluetooth(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::Bluetooth>>;
fn UserActivation(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::UserActivation>>;
fn MediaSession(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::MediaSession>>;
fn Xr(&self, cx: &mut JSContext) -> Root<Dom<<D as DomTypes>::XRSystem>>;
fn MediaDevices(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::MediaDevices>>;
fn WakeLock(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::WakeLock>>;
fn GetGamepads(
&self,
cx: &mut JSContext,
) -> Result<Vec<Option<Root<Dom<<D as DomTypes>::Gamepad>>>>, Error>;
fn ServiceWorker(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::ServiceWorkerContainer>>;
fn Permissions(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::Permissions>>;
fn Clipboard(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::Clipboard>>;
fn SendBeacon(
&self,
cx: &mut JSContext,
url: USVString,
data: Option<ReadableStreamOrBlobOrArrayBufferViewOrArrayBufferOrFormDataOrStringOrURLSearchParams<D>>,
) -> Result<bool, Error>;
fn Servo(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::ServoInternals>>;
fn Geolocation(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::Geolocation>>;
fn HardwareConcurrency(&self) -> u64;
fn RegisterProtocolHandler(
&self,
scheme: DOMString,
url: USVString,
) -> Result<(), Error>;
fn UnregisterProtocolHandler(
&self,
scheme: DOMString,
url: USVString,
) -> Result<(), Error>;
fn CookieEnabled(&self) -> bool;
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 Plugins(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::PluginArray>>;
fn MimeTypes(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::MimeTypeArray>>;
fn JavaEnabled(&self) -> bool;
fn PdfViewerEnabled(&self) -> bool;
fn Storage(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::StorageManager>>;
}Required Methods§
fn Credentials( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::CredentialsContainer>>
fn Bluetooth(&self, cx: &mut JSContext) -> Root<Dom<<D as DomTypes>::Bluetooth>>
fn UserActivation( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::UserActivation>>
fn MediaSession( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::MediaSession>>
fn Xr(&self, cx: &mut JSContext) -> Root<Dom<<D as DomTypes>::XRSystem>>
fn MediaDevices( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::MediaDevices>>
fn WakeLock(&self, cx: &mut JSContext) -> Root<Dom<<D as DomTypes>::WakeLock>>
fn GetGamepads( &self, cx: &mut JSContext, ) -> Result<Vec<Option<Root<Dom<<D as DomTypes>::Gamepad>>>>, Error>
fn ServiceWorker( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::ServiceWorkerContainer>>
fn Permissions( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::Permissions>>
fn Clipboard(&self, cx: &mut JSContext) -> Root<Dom<<D as DomTypes>::Clipboard>>
fn SendBeacon( &self, cx: &mut JSContext, url: USVString, data: Option<ReadableStreamOrBlobOrArrayBufferViewOrArrayBufferOrFormDataOrStringOrURLSearchParams<D>>, ) -> Result<bool, Error>
fn Servo( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::ServoInternals>>
fn Geolocation( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::Geolocation>>
fn HardwareConcurrency(&self) -> u64
fn RegisterProtocolHandler( &self, scheme: DOMString, url: USVString, ) -> Result<(), Error>
fn UnregisterProtocolHandler( &self, scheme: DOMString, url: USVString, ) -> Result<(), Error>
fn CookieEnabled(&self) -> bool
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 Plugins(&self, cx: &mut JSContext) -> Root<Dom<<D as DomTypes>::PluginArray>>
fn MimeTypes( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::MimeTypeArray>>
fn JavaEnabled(&self) -> bool
fn PdfViewerEnabled(&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".