Struct script::dom::fakexrdevice::FakeXRDevice
source · #[repr(C)]pub struct FakeXRDevice {
reflector: Reflector,
sender: IpcSender<MockDeviceMsg>,
next_input_id: Cell<InputId>,
}
Fields§
§reflector: Reflector
§sender: IpcSender<MockDeviceMsg>
§next_input_id: Cell<InputId>
Implementations§
source§impl FakeXRDevice
impl FakeXRDevice
fn __assert_parent_type(&self)
source§impl FakeXRDevice
impl FakeXRDevice
pub fn new_inherited(sender: IpcSender<MockDeviceMsg>) -> FakeXRDevice
pub fn new(
global: &GlobalScope,
sender: IpcSender<MockDeviceMsg>
) -> Root<Dom<FakeXRDevice>>
pub fn disconnect(&self, sender: IpcSender<()>)
Trait Implementations§
source§impl DomObject for FakeXRDevice
impl DomObject for FakeXRDevice
source§impl DomObjectWrap for FakeXRDevice
impl DomObjectWrap for FakeXRDevice
source§const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::FakeXRDeviceBinding::FakeXRDeviceBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::fakexrdevice::FakeXRDevice>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::fakexrdevice::FakeXRDevice>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::FakeXRDeviceBinding::FakeXRDeviceBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::fakexrdevice::FakeXRDevice>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::fakexrdevice::FakeXRDevice>>}
source§impl FakeXRDeviceMethods for FakeXRDevice
impl FakeXRDeviceMethods for FakeXRDevice
source§fn SetViews(&self, views: Vec<FakeXRViewInit>) -> Result<(), Error>
fn SetViews(&self, views: Vec<FakeXRViewInit>) -> Result<(), Error>
https://github.com/immersive-web/webxr-test-api/blob/master/explainer.md
source§fn SetViewerOrigin(
&self,
origin: &FakeXRRigidTransformInit,
_emulated_position: bool
) -> Result<(), Error>
fn SetViewerOrigin(
&self,
origin: &FakeXRRigidTransformInit,
_emulated_position: bool
) -> Result<(), Error>
https://immersive-web.github.io/webxr-test-api/#dom-fakexrdevice-setviewerorigin
source§fn ClearViewerOrigin(&self)
fn ClearViewerOrigin(&self)
https://immersive-web.github.io/webxr-test-api/#dom-fakexrdevice-clearviewerorigin
source§fn ClearFloorOrigin(&self)
fn ClearFloorOrigin(&self)
https://immersive-web.github.io/webxr-test-api/#dom-fakexrdevice-clearfloororigin
source§fn SetFloorOrigin(&self, origin: &FakeXRRigidTransformInit) -> Result<(), Error>
fn SetFloorOrigin(&self, origin: &FakeXRRigidTransformInit) -> Result<(), Error>
https://immersive-web.github.io/webxr-test-api/#dom-fakexrdevice-setfloororigin
source§fn ClearWorld(&self)
fn ClearWorld(&self)
https://immersive-web.github.io/webxr-test-api/#dom-fakexrdevice-clearworld
source§fn SetWorld(&self, world: &FakeXRWorldInit) -> Result<(), Error>
fn SetWorld(&self, world: &FakeXRWorldInit) -> Result<(), Error>
https://immersive-web.github.io/webxr-test-api/#dom-fakexrdevice-setworld
source§fn SimulateVisibilityChange(&self, v: XRVisibilityState)
fn SimulateVisibilityChange(&self, v: XRVisibilityState)
https://immersive-web.github.io/webxr-test-api/#dom-fakexrdevice-simulatevisibilitychange
source§fn SimulateInputSourceConnection(
&self,
init: &FakeXRInputSourceInit
) -> Result<Root<Dom<FakeXRInputController>>, Error>
fn SimulateInputSourceConnection(
&self,
init: &FakeXRInputSourceInit
) -> Result<Root<Dom<FakeXRInputController>>, Error>
https://immersive-web.github.io/webxr-test-api/#dom-fakexrdevice-simulateinputsourceconnection
source§fn Disconnect(&self) -> Rc<Promise>
fn Disconnect(&self) -> Rc<Promise>
https://immersive-web.github.io/webxr-test-api/#dom-fakexrdevice-disconnect
source§impl HasParent for FakeXRDevice
impl HasParent for FakeXRDevice
source§impl IDLInterface for FakeXRDevice
impl IDLInterface for FakeXRDevice
source§impl JSTraceable for FakeXRDevice
impl JSTraceable for FakeXRDevice
source§impl MallocSizeOf for FakeXRDevice
impl MallocSizeOf for FakeXRDevice
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl MutDomObject for FakeXRDevice
impl MutDomObject for FakeXRDevice
source§unsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
source§impl PartialEq<FakeXRDevice> for FakeXRDevice
impl PartialEq<FakeXRDevice> for FakeXRDevice
source§fn eq(&self, other: &FakeXRDevice) -> bool
fn eq(&self, other: &FakeXRDevice) -> bool
self
and other
values to be equal, and is used
by ==
.