pub trait WorkerGlobalScopeMethods {
Show 19 methods // Required methods fn Self_(&self) -> Root<Dom<WorkerGlobalScope>>; fn Location(&self) -> Root<Dom<WorkerLocation>>; fn GetOnerror(&self) -> Option<Rc<OnErrorEventHandlerNonNull>>; fn SetOnerror(&self, value: Option<Rc<OnErrorEventHandlerNonNull>>); fn ImportScripts(&self, urls: Vec<DOMString>) -> Result<(), Error>; fn Navigator(&self) -> Root<Dom<WorkerNavigator>>; fn Crypto(&self) -> Root<Dom<Crypto>>; fn Origin(&self) -> USVString; fn Btoa(&self, data: DOMString) -> Result<DOMString, Error>; fn Atob(&self, data: DOMString) -> Result<DOMString, Error>; fn SetTimeout( &self, cx: SafeJSContext, handler: StringOrFunction, timeout: i32, arguments: Vec<HandleValue<'_>> ) -> i32; fn ClearTimeout(&self, handle: i32); fn SetInterval( &self, cx: SafeJSContext, handler: StringOrFunction, timeout: i32, arguments: Vec<HandleValue<'_>> ) -> i32; fn ClearInterval(&self, handle: i32); fn QueueMicrotask(&self, callback: Rc<VoidFunction>); fn CreateImageBitmap( &self, image: HTMLOrSVGImageElementOrHTMLCanvasElementOrOffscreenCanvasOrCSSStyleValueOrBlobOrImageData, options: &ImageBitmapOptions ) -> Rc<Promise>; fn Fetch( &self, input: RequestOrUSVString, init: RootedTraceableBox<RequestInit>, _comp: InRealm<'_> ) -> Rc<Promise>; fn Performance(&self) -> Root<Dom<Performance>>; fn IsSecureContext(&self) -> bool;
}

Required Methods§

Implementors§