SharedWorkerMethods

pub trait SharedWorkerMethods<D>
where D: DomTypes,
{ // Required methods fn Port(&self) -> Root<Dom<<D as DomTypes>::MessagePort>>; fn GetOnerror( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOnerror( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, ); fn Constructor( cx: &mut JSContext, global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, scriptURL: TrustedScriptURLOrUSVString<D>, options: StringOrSharedWorkerOptions, ) -> Result<Root<Dom<<D as DomTypes>::SharedWorker>>, Error>; }

Required Methods§

Source

fn Port(&self) -> Root<Dom<<D as DomTypes>::MessagePort>>

Source

fn GetOnerror(&self, cx: &mut JSContext) -> Option<Rc<EventHandlerNonNull<D>>>

Source

fn SetOnerror( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )

Source

fn Constructor( cx: &mut JSContext, global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, scriptURL: TrustedScriptURLOrUSVString<D>, options: StringOrSharedWorkerOptions, ) -> Result<Root<Dom<<D as DomTypes>::SharedWorker>>, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§