pub trait FakeXRDeviceMethods<D: DomTypes> {
// Required methods
fn SetViews(
&self,
views: Vec<FakeXRViewInit>,
secondaryViews: Option<Vec<FakeXRViewInit>>,
) -> Fallible<()>;
fn Disconnect(
&self,
realm: &mut CurrentRealm<'_>,
) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
fn SetViewerOrigin(
&self,
origin: &FakeXRRigidTransformInit,
emulatedPosition: bool,
) -> Fallible<()>;
fn ClearViewerOrigin(&self);
fn SetFloorOrigin(&self, origin: &FakeXRRigidTransformInit) -> Fallible<()>;
fn ClearFloorOrigin(&self);
fn SetBoundsGeometry(
&self,
boundsCoodinates: Vec<FakeXRBoundsPoint>,
) -> Fallible<()>;
fn SimulateResetPose(&self);
fn SimulateVisibilityChange(&self, state: XRVisibilityState);
fn SimulateInputSourceConnection(
&self,
cx: &mut JSContext,
init: &FakeXRInputSourceInit,
) -> Fallible<DomRoot<D::FakeXRInputController>>;
fn SetWorld(&self, world: &FakeXRWorldInit) -> Fallible<()>;
fn ClearWorld(&self);
}Required Methods§
fn SetViews( &self, views: Vec<FakeXRViewInit>, secondaryViews: Option<Vec<FakeXRViewInit>>, ) -> Fallible<()>
fn Disconnect( &self, realm: &mut CurrentRealm<'_>, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot
fn SetViewerOrigin( &self, origin: &FakeXRRigidTransformInit, emulatedPosition: bool, ) -> Fallible<()>
fn ClearViewerOrigin(&self)
fn SetFloorOrigin(&self, origin: &FakeXRRigidTransformInit) -> Fallible<()>
fn ClearFloorOrigin(&self)
fn SetBoundsGeometry( &self, boundsCoodinates: Vec<FakeXRBoundsPoint>, ) -> Fallible<()>
fn SimulateResetPose(&self)
fn SimulateVisibilityChange(&self, state: XRVisibilityState)
fn SimulateInputSourceConnection( &self, cx: &mut JSContext, init: &FakeXRInputSourceInit, ) -> Fallible<DomRoot<D::FakeXRInputController>>
fn SetWorld(&self, world: &FakeXRWorldInit) -> Fallible<()>
fn ClearWorld(&self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".