pub(crate) trait ServiceWorkerRegistrationMethods<D>where
D: DomTypes,{
// Required methods
fn GetInstalling(&self) -> Option<Root<Dom<<D as DomTypes>::ServiceWorker>>>;
fn GetWaiting(&self) -> Option<Root<Dom<<D as DomTypes>::ServiceWorker>>>;
fn GetActive(&self) -> Option<Root<Dom<<D as DomTypes>::ServiceWorker>>>;
fn NavigationPreload(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::NavigationPreloadManager>>;
fn Scope(&self) -> USVString;
fn UpdateViaCache(&self) -> ServiceWorkerUpdateViaCache;
fn Unregister(
&self,
cx: &mut JSContext,
) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot;
fn Cookies(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::CookieStoreManager>>;
}Required Methods§
fn GetInstalling(&self) -> Option<Root<Dom<<D as DomTypes>::ServiceWorker>>>
fn GetWaiting(&self) -> Option<Root<Dom<<D as DomTypes>::ServiceWorker>>>
fn GetActive(&self) -> Option<Root<Dom<<D as DomTypes>::ServiceWorker>>>
fn Scope(&self) -> USVString
fn UpdateViaCache(&self) -> ServiceWorkerUpdateViaCache
fn Unregister( &self, cx: &mut JSContext, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot
fn Cookies( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::CookieStoreManager>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".