Trait script::dom::bindings::codegen::Bindings::BroadcastChannelBinding::BroadcastChannel_Binding::BroadcastChannelMethods
source · pub trait BroadcastChannelMethods {
// Required methods
fn Name(&self) -> DOMString;
fn PostMessage(
&self,
cx: SafeJSContext,
message: HandleValue<'_>,
) -> Result<(), Error>;
fn Close(&self);
fn GetOnmessage(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnmessage(&self, value: Option<Rc<EventHandlerNonNull>>);
fn GetOnmessageerror(&self) -> Option<Rc<EventHandlerNonNull>>;
fn SetOnmessageerror(&self, value: Option<Rc<EventHandlerNonNull>>);
fn Constructor(
global: &GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
name: DOMString,
) -> Root<Dom<BroadcastChannel>>;
}
Required Methods§
fn Name(&self) -> DOMString
fn PostMessage( &self, cx: SafeJSContext, message: HandleValue<'_>, ) -> Result<(), Error>
fn Close(&self)
fn GetOnmessage(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnmessage(&self, value: Option<Rc<EventHandlerNonNull>>)
fn GetOnmessageerror(&self) -> Option<Rc<EventHandlerNonNull>>
fn SetOnmessageerror(&self, value: Option<Rc<EventHandlerNonNull>>)
fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, name: DOMString, ) -> Root<Dom<BroadcastChannel>>
Object Safety§
This trait is not object safe.