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