Struct web_sys::ServiceWorkerGlobalScope [−][src]
#[repr(transparent)]pub struct ServiceWorkerGlobalScope { /* fields omitted */ }
Expand description
The ServiceWorkerGlobalScope
class.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
Implementations
Getter for the clients
field of this object.
This API requires the following crate features to be activated: Clients
, ServiceWorkerGlobalScope
Getter for the registration
field of this object.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
, ServiceWorkerRegistration
Getter for the oninstall
field of this object.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
Setter for the oninstall
field of this object.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
Getter for the onactivate
field of this object.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
Setter for the onactivate
field of this object.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
Getter for the onfetch
field of this object.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
Setter for the onfetch
field of this object.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
Getter for the onmessage
field of this object.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
Setter for the onmessage
field of this object.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
Getter for the onpush
field of this object.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
Setter for the onpush
field of this object.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
Getter for the onpushsubscriptionchange
field of this object.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
Setter for the onpushsubscriptionchange
field of this object.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
Getter for the onnotificationclick
field of this object.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
Setter for the onnotificationclick
field of this object.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
Getter for the onnotificationclose
field of this object.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
Setter for the onnotificationclose
field of this object.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
The skipWaiting()
method.
This API requires the following crate features to be activated: ServiceWorkerGlobalScope
Methods from Deref<Target = WorkerGlobalScope>
Getter for the self
field of this object.
This API requires the following crate features to be activated: WorkerGlobalScope
Getter for the location
field of this object.
This API requires the following crate features to be activated: WorkerGlobalScope
, WorkerLocation
Getter for the navigator
field of this object.
This API requires the following crate features to be activated: WorkerGlobalScope
, WorkerNavigator
Getter for the onerror
field of this object.
This API requires the following crate features to be activated: WorkerGlobalScope
Setter for the onerror
field of this object.
This API requires the following crate features to be activated: WorkerGlobalScope
Getter for the onoffline
field of this object.
This API requires the following crate features to be activated: WorkerGlobalScope
Setter for the onoffline
field of this object.
This API requires the following crate features to be activated: WorkerGlobalScope
Getter for the ononline
field of this object.
This API requires the following crate features to be activated: WorkerGlobalScope
Setter for the ononline
field of this object.
This API requires the following crate features to be activated: WorkerGlobalScope
Getter for the origin
field of this object.
This API requires the following crate features to be activated: WorkerGlobalScope
Getter for the isSecureContext
field of this object.
This API requires the following crate features to be activated: WorkerGlobalScope
Getter for the indexedDB
field of this object.
This API requires the following crate features to be activated: IdbFactory
, WorkerGlobalScope
Getter for the caches
field of this object.
This API requires the following crate features to be activated: CacheStorage
, WorkerGlobalScope
The importScripts()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The importScripts()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The importScripts()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The importScripts()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The importScripts()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The importScripts()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The clearInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The clearInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The clearTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The clearTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
pub fn create_image_bitmap_with_html_image_element(
&self,
a_image: &HtmlImageElement
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_html_image_element(
&self,
a_image: &HtmlImageElement
) -> Result<Promise, JsValue>
The createImageBitmap()
method.
This API requires the following crate features to be activated: HtmlImageElement
, WorkerGlobalScope
pub fn create_image_bitmap_with_html_video_element(
&self,
a_image: &HtmlVideoElement
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_html_video_element(
&self,
a_image: &HtmlVideoElement
) -> Result<Promise, JsValue>
The createImageBitmap()
method.
This API requires the following crate features to be activated: HtmlVideoElement
, WorkerGlobalScope
pub fn create_image_bitmap_with_html_canvas_element(
&self,
a_image: &HtmlCanvasElement
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_html_canvas_element(
&self,
a_image: &HtmlCanvasElement
) -> Result<Promise, JsValue>
The createImageBitmap()
method.
This API requires the following crate features to be activated: HtmlCanvasElement
, WorkerGlobalScope
The createImageBitmap()
method.
This API requires the following crate features to be activated: Blob
, WorkerGlobalScope
The createImageBitmap()
method.
This API requires the following crate features to be activated: ImageData
, WorkerGlobalScope
pub fn create_image_bitmap_with_canvas_rendering_context_2d(
&self,
a_image: &CanvasRenderingContext2d
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_canvas_rendering_context_2d(
&self,
a_image: &CanvasRenderingContext2d
) -> Result<Promise, JsValue>
The createImageBitmap()
method.
This API requires the following crate features to be activated: CanvasRenderingContext2d
, WorkerGlobalScope
pub fn create_image_bitmap_with_image_bitmap(
&self,
a_image: &ImageBitmap
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_image_bitmap(
&self,
a_image: &ImageBitmap
) -> Result<Promise, JsValue>
The createImageBitmap()
method.
This API requires the following crate features to be activated: ImageBitmap
, WorkerGlobalScope
The createImageBitmap()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The createImageBitmap()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
pub fn create_image_bitmap_with_html_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &HtmlImageElement,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_html_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &HtmlImageElement,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
The createImageBitmap()
method.
This API requires the following crate features to be activated: HtmlImageElement
, WorkerGlobalScope
pub fn create_image_bitmap_with_html_video_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &HtmlVideoElement,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_html_video_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &HtmlVideoElement,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
The createImageBitmap()
method.
This API requires the following crate features to be activated: HtmlVideoElement
, WorkerGlobalScope
pub fn create_image_bitmap_with_html_canvas_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &HtmlCanvasElement,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_html_canvas_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &HtmlCanvasElement,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
The createImageBitmap()
method.
This API requires the following crate features to be activated: HtmlCanvasElement
, WorkerGlobalScope
The createImageBitmap()
method.
This API requires the following crate features to be activated: Blob
, WorkerGlobalScope
The createImageBitmap()
method.
This API requires the following crate features to be activated: ImageData
, WorkerGlobalScope
pub fn create_image_bitmap_with_canvas_rendering_context_2d_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &CanvasRenderingContext2d,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_canvas_rendering_context_2d_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &CanvasRenderingContext2d,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
The createImageBitmap()
method.
This API requires the following crate features to be activated: CanvasRenderingContext2d
, WorkerGlobalScope
pub fn create_image_bitmap_with_image_bitmap_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &ImageBitmap,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
pub fn create_image_bitmap_with_image_bitmap_and_a_sx_and_a_sy_and_a_sw_and_a_sh(
&self,
a_image: &ImageBitmap,
a_sx: i32,
a_sy: i32,
a_sw: i32,
a_sh: i32
) -> Result<Promise, JsValue>
The createImageBitmap()
method.
This API requires the following crate features to be activated: ImageBitmap
, WorkerGlobalScope
The createImageBitmap()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The createImageBitmap()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The fetch()
method.
This API requires the following crate features to be activated: Request
, WorkerGlobalScope
The fetch()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The fetch()
method.
This API requires the following crate features to be activated: Request
, RequestInit
, WorkerGlobalScope
The fetch()
method.
This API requires the following crate features to be activated: RequestInit
, WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setInterval()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
The setTimeout()
method.
This API requires the following crate features to be activated: WorkerGlobalScope
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
type Target = WorkerGlobalScope
type Target = WorkerGlobalScope
The resulting type after dereferencing.
Dereferences the value.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs a dynamic instanceof
check to see whether the JsValue
provided is an instance of this type. Read more
Performs a zero-cost unchecked conversion from a JsValue
into an
instance of Self
Read more
Performs a zero-cost unchecked conversion from a &JsValue
into an
instance of &Self
. Read more
Test whether this JS value has a type T
. Read more
Performs a dynamic cast (checked at runtime) of this value into the
target type T
. Read more
Performs a dynamic cast (checked at runtime) of this value into the
target type T
. Read more
Performs a zero-cost unchecked cast into the specified type. Read more
Performs a zero-cost unchecked cast into a reference to the specified type. Read more
Test whether this JS value is an instance of the type T
. Read more
Performs a dynamic check to see whether the JsValue
provided
is a value of this type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to Self
are recovered from.
The type that holds the reference to Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read more
Recover a Self::Anchor
from Self::Abi
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ServiceWorkerGlobalScope
impl !Send for ServiceWorkerGlobalScope
impl !Sync for ServiceWorkerGlobalScope
impl Unpin for ServiceWorkerGlobalScope
impl UnwindSafe for ServiceWorkerGlobalScope
Blanket Implementations
Mutably borrows from an owned value. Read more
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
Same as IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more