pub trait MessagePortMethods {
    // Required methods
    fn PostMessage(
        &self,
        cx: SafeJSContext,
        message: HandleValue<'_>,
        transfer: CustomAutoRooterGuard<'_, Vec<*mut JSObject>>,
    ) -> Result<(), Error>;
    fn PostMessage_(
        &self,
        cx: SafeJSContext,
        message: HandleValue<'_>,
        options: RootedTraceableBox<StructuredSerializeOptions>,
    ) -> Result<(), Error>;
    fn Start(&self);
    fn Close(&self);
    fn GetOnmessage(&self, _can_gc: CanGc) -> Option<Rc<EventHandlerNonNull>>;
    fn SetOnmessage(&self, value: Option<Rc<EventHandlerNonNull>>);
    fn GetOnmessageerror(&self) -> Option<Rc<EventHandlerNonNull>>;
    fn SetOnmessageerror(&self, value: Option<Rc<EventHandlerNonNull>>);
}

Required Methods§

Implementors§