Struct webxr_api::SessionInit
source · pub struct SessionInit {
pub required_features: Vec<String>,
pub optional_features: Vec<String>,
pub first_person_observer_view: bool,
}
Expand description
https://immersive-web.github.io/webxr/#dictdef-xrsessioninit
Fields§
§required_features: Vec<String>
§optional_features: Vec<String>
§first_person_observer_view: bool
Secondary views are enabled with the secondary-view
feature
but for performance reasons we also ask users to enable this pref
for now.
Implementations§
source§impl SessionInit
impl SessionInit
Trait Implementations§
source§impl Clone for SessionInit
impl Clone for SessionInit
source§fn clone(&self) -> SessionInit
fn clone(&self) -> SessionInit
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SessionInit
impl Debug for SessionInit
source§impl<'de> Deserialize<'de> for SessionInit
impl<'de> Deserialize<'de> for SessionInit
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for SessionInit
impl PartialEq for SessionInit
source§fn eq(&self, other: &SessionInit) -> bool
fn eq(&self, other: &SessionInit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SessionInit
impl Serialize for SessionInit
impl Eq for SessionInit
impl StructuralPartialEq for SessionInit
Auto Trait Implementations§
impl Freeze for SessionInit
impl RefUnwindSafe for SessionInit
impl Send for SessionInit
impl Sync for SessionInit
impl Unpin for SessionInit
impl UnwindSafe for SessionInit
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more