pub trait SharedWorkerGlobalScopeMethods<D>where
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>>>,
);
}