script::dom::bindings::codegen::Bindings::MessageEventBinding

Type Alias MessageEventInit

Source
pub(crate) type MessageEventInit = MessageEventInit<DomTypeHolder>;

Aliased Type§

struct MessageEventInit {
    pub parent: EventInit,
    pub data: RootedTraceableBox<Heap<Value>>,
    pub lastEventId: DOMString,
    pub origin: DOMString,
    pub ports: Vec<Root<Dom<MessagePort>>>,
    pub source: Option<WindowProxyOrMessagePortOrServiceWorker<DomTypeHolder>>,
}

Fields§

§parent: EventInit§data: RootedTraceableBox<Heap<Value>>§lastEventId: DOMString§origin: DOMString§ports: Vec<Root<Dom<MessagePort>>>§source: Option<WindowProxyOrMessagePortOrServiceWorker<DomTypeHolder>>

Implementations

Trait Implementations

Source§

impl<D> Default for MessageEventInit<D>
where D: DomTypes,

Source§

fn default() -> MessageEventInit<D>

Returns the “default value” for a type. Read more
Source§

impl<D> ToJSValConvertible for MessageEventInit<D>
where D: DomTypes,

Source§

unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandle<'_, Value>)

Convert self to a JSVal. JSAPI failure causes a panic.
Source§

impl<D> Traceable for MessageEventInit<D>
where D: DomTypes + Traceable,

Source§

unsafe fn trace(&self, tracer: *mut JSTracer)

Trace self.