pub(crate) trait BroadcastChannelMethods<D>where
D: DomTypes,{
// Required methods
fn Name(&self) -> DOMString;
fn PostMessage(
&self,
cx: JSContext,
message: Handle<'_, Value>,
) -> Result<(), Error>;
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 as DomTypes>::GlobalScope,
proto: Option<Handle<'_, *mut JSObject>>,
can_gc: CanGc,
name: DOMString,
) -> Root<Dom<<D as DomTypes>::BroadcastChannel>>;
}
Required Methods§
fn Name(&self) -> DOMString
fn PostMessage( &self, cx: JSContext, message: Handle<'_, Value>, ) -> Result<(), Error>
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 as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, name: DOMString, ) -> Root<Dom<<D as DomTypes>::BroadcastChannel>>
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.