pub trait NavigatorMethods<D: DomTypes> {
Show 33 methods
// Required methods
fn Credentials(&self) -> DomRoot<D::CredentialsContainer>;
fn MediaDevices(&self) -> DomRoot<D::MediaDevices>;
fn ServiceWorker(&self) -> DomRoot<D::ServiceWorkerContainer>;
fn Permissions(&self) -> DomRoot<D::Permissions>;
fn Clipboard(&self, cx: &mut JSContext) -> DomRoot<D::Clipboard>;
fn SendBeacon(
&self,
cx: &mut JSContext,
url: USVString,
data: Option<ReadableStreamOrBlobOrArrayBufferViewOrArrayBufferOrFormDataOrStringOrURLSearchParams<D>>,
) -> Fallible<bool>;
fn WakeLock(&self, cx: &mut JSContext) -> DomRoot<D::WakeLock>;
fn MediaSession(&self) -> DomRoot<D::MediaSession>;
fn UserActivation(&self, cx: &mut JSContext) -> DomRoot<D::UserActivation>;
fn Servo(&self) -> DomRoot<D::ServoInternals>;
fn Geolocation(&self) -> DomRoot<D::Geolocation>;
fn HardwareConcurrency(&self) -> u64;
fn RegisterProtocolHandler(
&self,
scheme: DOMString,
url: USVString,
) -> Fallible<()>;
fn UnregisterProtocolHandler(
&self,
scheme: DOMString,
url: USVString,
) -> Fallible<()>;
fn CookieEnabled(&self) -> bool;
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: MutableHandleValue<'_>);
fn OnLine(&self) -> bool;
fn Plugins(&self) -> DomRoot<D::PluginArray>;
fn MimeTypes(&self) -> DomRoot<D::MimeTypeArray>;
fn JavaEnabled(&self) -> bool;
fn PdfViewerEnabled(&self) -> bool;
fn Storage(&self, cx: &mut JSContext) -> DomRoot<D::StorageManager>;
}Required Methods§
fn Credentials(&self) -> DomRoot<D::CredentialsContainer>
fn MediaDevices(&self) -> DomRoot<D::MediaDevices>
fn ServiceWorker(&self) -> DomRoot<D::ServiceWorkerContainer>
fn Permissions(&self) -> DomRoot<D::Permissions>
fn Clipboard(&self, cx: &mut JSContext) -> DomRoot<D::Clipboard>
fn SendBeacon( &self, cx: &mut JSContext, url: USVString, data: Option<ReadableStreamOrBlobOrArrayBufferViewOrArrayBufferOrFormDataOrStringOrURLSearchParams<D>>, ) -> Fallible<bool>
fn WakeLock(&self, cx: &mut JSContext) -> DomRoot<D::WakeLock>
fn MediaSession(&self) -> DomRoot<D::MediaSession>
fn UserActivation(&self, cx: &mut JSContext) -> DomRoot<D::UserActivation>
fn Servo(&self) -> DomRoot<D::ServoInternals>
fn Geolocation(&self) -> DomRoot<D::Geolocation>
fn HardwareConcurrency(&self) -> u64
fn RegisterProtocolHandler( &self, scheme: DOMString, url: USVString, ) -> Fallible<()>
fn UnregisterProtocolHandler( &self, scheme: DOMString, url: USVString, ) -> Fallible<()>
fn CookieEnabled(&self) -> bool
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: MutableHandleValue<'_>)
fn OnLine(&self) -> bool
fn Plugins(&self) -> DomRoot<D::PluginArray>
fn MimeTypes(&self) -> DomRoot<D::MimeTypeArray>
fn JavaEnabled(&self) -> bool
fn PdfViewerEnabled(&self) -> bool
fn Storage(&self, cx: &mut JSContext) -> DomRoot<D::StorageManager>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".