pub trait SharedWorkerGlobalScopeMethods<D: DomTypes> {
// Required methods
fn Name(&self) -> DOMString;
fn Close(&self);
fn GetOnconnect(
&self,
cx: &mut JSContext,
) -> Option<Rc<EventHandlerNonNull<D>>>;
fn SetOnconnect(
&self,
cx: &mut JSContext,
value: Option<Rc<EventHandlerNonNull<D>>>,
);
}Required Methods§
fn Name(&self) -> DOMString
fn Close(&self)
fn GetOnconnect(&self, cx: &mut JSContext) -> Option<Rc<EventHandlerNonNull<D>>>
fn SetOnconnect( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".