pub(crate) trait BroadcastChannelMethods<D: DomTypes> {
    // Required methods
    fn Name(&self) -> DOMString;
    fn PostMessage(
        &self,
        cx: SafeJSContext,
        message: HandleValue<'_>,
    ) -> Fallible<()>;
    fn Close(&self);
    fn GetOnmessage(&self) -> Option<Rc<EventHandlerNonNull<D>>>;
    fn SetOnmessage(&self, value: Option<Rc<EventHandlerNonNull<D>>>);
    fn GetOnmessageerror(&self) -> Option<Rc<EventHandlerNonNull<D>>>;
    fn SetOnmessageerror(&self, value: Option<Rc<EventHandlerNonNull<D>>>);
    fn Constructor(
        global: &D::GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        name: DOMString,
    ) -> DomRoot<D::BroadcastChannel>;
}

Required Methods§

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§