[][src]Trait rust_webvr::VRService

pub trait VRService: Send {
    fn initialize(&mut self) -> Result<(), String>;
fn fetch_displays(
        &mut self
    ) -> Result<Vec<Arc<RefCell<dyn VRDisplay + 'static>>>, String>;
fn fetch_gamepads(
        &mut self
    ) -> Result<Vec<Arc<RefCell<dyn VRGamepad + 'static>>>, String>;
fn is_available(&self) -> bool;
fn poll_events(&self) -> Vec<VREvent>; }

Required methods

fn initialize(&mut self) -> Result<(), String>

fn fetch_displays(
    &mut self
) -> Result<Vec<Arc<RefCell<dyn VRDisplay + 'static>>>, String>

fn fetch_gamepads(
    &mut self
) -> Result<Vec<Arc<RefCell<dyn VRGamepad + 'static>>>, String>

fn is_available(&self) -> bool

fn poll_events(&self) -> Vec<VREvent>

Loading content...

Implementors

Loading content...