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 for SessionInit
impl PartialEq for SessionInit
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)