pub(crate) trait XRInputSourcesChangeEventMethods<D: DomTypes> {
    // Required methods
    fn Session(&self) -> DomRoot<D::XRSession>;
    fn Added(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>);
    fn Removed(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>);
    fn IsTrusted(&self) -> bool;
    fn Constructor(
        global: &D::Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        type_: DOMString,
        eventInitDict: &XRInputSourcesChangeEventInit<D>,
    ) -> DomRoot<D::XRInputSourcesChangeEvent>;
}

Required Methods§

Source

fn Session(&self) -> DomRoot<D::XRSession>

Source

fn Added(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>)

Source

fn Removed(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>)

Source

fn IsTrusted(&self) -> bool

Source

fn Constructor( global: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: &XRInputSourcesChangeEventInit<D>, ) -> DomRoot<D::XRInputSourcesChangeEvent>

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§