pub trait XRSystemMethods<D>where
D: DomTypes,{
// Required methods
fn IsSessionSupported(
&self,
realm: &mut CurrentRealm<'_>,
mode: XRSessionMode,
) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot;
fn RequestSession(
&self,
realm: &mut CurrentRealm<'_>,
mode: XRSessionMode,
parameters: &XRSessionInit,
) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot;
fn GetOndevicechange(
&self,
cx: &mut JSContext,
) -> Option<RootedCallback<EventHandlerNonNull<D>>>;
fn SetOndevicechange(
&self,
cx: &mut JSContext,
value: Option<RootedCallback<EventHandlerNonNull<D>>>,
);
fn Test(&self, cx: &mut JSContext) -> Root<Dom<<D as DomTypes>::XRTest>>;
}Required Methods§
fn IsSessionSupported( &self, realm: &mut CurrentRealm<'_>, mode: XRSessionMode, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot
fn RequestSession( &self, realm: &mut CurrentRealm<'_>, mode: XRSessionMode, parameters: &XRSessionInit, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot
fn GetOndevicechange( &self, cx: &mut JSContext, ) -> Option<RootedCallback<EventHandlerNonNull<D>>>
fn SetOndevicechange( &self, cx: &mut JSContext, value: Option<RootedCallback<EventHandlerNonNull<D>>>, )
fn Test(&self, cx: &mut JSContext) -> Root<Dom<<D as DomTypes>::XRTest>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".