Trait webxr_api::device::DiscoveryAPI

source ·
pub trait DiscoveryAPI<GL>: 'static {
    // Required methods
    fn request_session(
        &mut self,
        mode: SessionMode,
        init: &SessionInit,
        xr: SessionBuilder<'_, GL>,
    ) -> Result<Session, Error>;
    fn supports_session(&self, mode: SessionMode) -> bool;
}
Expand description

A trait for discovering XR devices

Required Methods§

source

fn request_session( &mut self, mode: SessionMode, init: &SessionInit, xr: SessionBuilder<'_, GL>, ) -> Result<Session, Error>

source

fn supports_session(&self, mode: SessionMode) -> bool

Trait Implementations§

source§

impl<GL: 'static> DiscoveryAPI<GL> for Box<dyn DiscoveryAPI<GL>>

source§

fn request_session( &mut self, mode: SessionMode, init: &SessionInit, xr: SessionBuilder<'_, GL>, ) -> Result<Session, Error>

source§

fn supports_session(&self, mode: SessionMode) -> bool

Implementations on Foreign Types§

source§

impl<GL: 'static> DiscoveryAPI<GL> for Box<dyn DiscoveryAPI<GL>>

source§

fn request_session( &mut self, mode: SessionMode, init: &SessionInit, xr: SessionBuilder<'_, GL>, ) -> Result<Session, Error>

source§

fn supports_session(&self, mode: SessionMode) -> bool

Implementors§