script::dom::bindings::codegen::Bindings::XRSystemBinding

Type Alias XRSessionInit

Source
pub(crate) type XRSessionInit = XRSessionInit;

Aliased Type§

struct XRSessionInit {
    pub optionalFeatures: Option<Vec<RootedTraceableBox<Heap<Value>>>>,
    pub requiredFeatures: Option<Vec<RootedTraceableBox<Heap<Value>>>>,
}

Fields§

§optionalFeatures: Option<Vec<RootedTraceableBox<Heap<Value>>>>§requiredFeatures: Option<Vec<RootedTraceableBox<Heap<Value>>>>

Implementations

Trait Implementations

Source§

impl Default for XRSessionInit

Source§

fn default() -> XRSessionInit

Returns the “default value” for a type. Read more
Source§

impl ToJSValConvertible for XRSessionInit

Source§

unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandle<'_, Value>)

Convert self to a JSVal. JSAPI failure causes a panic.
Source§

impl Traceable for XRSessionInit

Source§

unsafe fn trace(&self, tracer: *mut JSTracer)

Trace self.