Skip to main content

Module service_worker

Module service_worker 

Source
Expand description

The ServiceWorker domain.

Types, command parameters and event payloads for the ServiceWorker domain. The method-name constants for the same domain are in crate::methods.

This domain is experimental and may change without notice.

Structs§

DeliverPushMessageParams
Parameters of ServiceWorker.deliverPushMessage.
DisableParams
Parameters of ServiceWorker.disable.
DispatchPeriodicSyncEventParams
Parameters of ServiceWorker.dispatchPeriodicSyncEvent.
DispatchSyncEventParams
Parameters of ServiceWorker.dispatchSyncEvent.
EnableParams
Parameters of ServiceWorker.enable.
ServiceWorkerErrorMessage
ServiceWorker error message.
ServiceWorkerRegistration
ServiceWorker registration.
ServiceWorkerRouterCondition
Mostly corresponds to RouterCondition in ServiceWorker spec (https://www.w3.org/TR/service-workers/#dictdef-routercondition)
ServiceWorkerRouterRule
ServiceWorkerRouterSource
Corresponds to RouterSource in the spec while the representation is different as follows. (https://www.w3.org/TR/service-workers/#typedefdef-routersource) - RouterSourceEnum: type equals cache, sourceDict is null. - RouterSourceDict: type equals sourceDict, sourceDict has valid value.
ServiceWorkerRouterSourceDict
https://www.w3.org/TR/service-workers/#dictdef-routersourcedict
ServiceWorkerVersion
ServiceWorker version.
SetForceUpdateOnPageLoadParams
Parameters of ServiceWorker.setForceUpdateOnPageLoad.
SkipWaitingParams
Parameters of ServiceWorker.skipWaiting.
StartWorkerParams
Parameters of ServiceWorker.startWorker.
StopAllWorkersParams
Parameters of ServiceWorker.stopAllWorkers.
StopWorkerParams
Parameters of ServiceWorker.stopWorker.
UnregisterParams
Parameters of ServiceWorker.unregister.
UpdateRegistrationParams
Parameters of ServiceWorker.updateRegistration.
WorkerErrorReportedEvent
Payload of the ServiceWorker.workerErrorReported event.
WorkerRegistrationUpdatedEvent
Payload of the ServiceWorker.workerRegistrationUpdated event.
WorkerVersionUpdatedEvent
Payload of the ServiceWorker.workerVersionUpdated event.

Enums§

ServiceWorkerRouterSourceType
ServiceWorkerVersionRunningStatus
ServiceWorkerVersionStatus

Type Aliases§

RegistrationId