Struct webxr_api::session::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<SessionInit> for SessionInit
impl PartialEq<SessionInit> 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 ==
.