pub trait XRTestMethods<D>where
D: DomTypes,{
// Required methods
fn SimulateDeviceConnection(
&self,
realm: &mut CurrentRealm<'_>,
init: &FakeXRDeviceInit,
) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot;
fn SimulateUserActivation(
&self,
cx: &mut JSContext,
f: RootedCallback<Function<D>>,
);
fn DisconnectAllDevices(
&self,
realm: &mut CurrentRealm<'_>,
) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot;
}Required Methods§
fn SimulateDeviceConnection( &self, realm: &mut CurrentRealm<'_>, init: &FakeXRDeviceInit, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot
fn SimulateUserActivation( &self, cx: &mut JSContext, f: RootedCallback<Function<D>>, )
fn DisconnectAllDevices( &self, realm: &mut CurrentRealm<'_>, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".