pub(crate) trait MessageChannelMethods<D: DomTypes> {
    // Required methods
    fn Port1(&self) -> DomRoot<D::MessagePort>;
    fn Port2(&self) -> DomRoot<D::MessagePort>;
    fn Constructor(
        global: &D::GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
    ) -> DomRoot<D::MessageChannel>;
}

Required Methods§

Source

fn Port1(&self) -> DomRoot<D::MessagePort>

Source

fn Port2(&self) -> DomRoot<D::MessagePort>

Source

fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> DomRoot<D::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.

Implementors§