pub(crate) trait MessageChannelMethods<D>where
D: DomTypes,{
// Required methods
fn Port1(&self) -> Root<Dom<<D as DomTypes>::MessagePort>>;
fn Port2(&self) -> Root<Dom<<D as DomTypes>::MessagePort>>;
fn Constructor(
cx: &mut JSContext,
global: &<D as DomTypes>::GlobalScope,
proto: Option<Handle<'_, *mut JSObject>>,
) -> Root<Dom<<D as DomTypes>::MessageChannel>>;
}Required Methods§
fn Port1(&self) -> Root<Dom<<D as DomTypes>::MessagePort>>
fn Port2(&self) -> Root<Dom<<D as DomTypes>::MessagePort>>
fn Constructor( cx: &mut JSContext, global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, ) -> Root<Dom<<D as DomTypes>::MessageChannel>>
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.