Skip to main content

BroadcastChannelMethods

pub trait BroadcastChannelMethods<D>
where D: DomTypes,
{ // Required methods fn Name(&self) -> DOMString; fn PostMessage( &self, cx: &mut JSContext, message: Handle<'_, Value>, ) -> Result<(), Error>; fn Close(&self); fn GetOnmessage( &self, cx: &mut JSContext, ) -> Option<RootedCallback<EventHandlerNonNull<D>>>; fn SetOnmessage( &self, cx: &mut JSContext, value: Option<RootedCallback<EventHandlerNonNull<D>>>, ); fn GetOnmessageerror( &self, cx: &mut JSContext, ) -> Option<RootedCallback<EventHandlerNonNull<D>>>; fn SetOnmessageerror( &self, cx: &mut JSContext, value: Option<RootedCallback<EventHandlerNonNull<D>>>, ); fn Constructor( cx: &mut JSContext, global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, name: DOMString, ) -> Root<Dom<<D as DomTypes>::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§