Skip to content

Instantly share code, notes, and snippets.

@MortimerGoro
Created November 23, 2016 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MortimerGoro/1774e96596792d741f8bfad8e4607475 to your computer and use it in GitHub Desktop.
Save MortimerGoro/1774e96596792d741f8bfad8e4607475 to your computer and use it in GitHub Desktop.
VRService traits for blogpost
pub trait VRService: Send {
fn initialize(&mut self) -> Result<(), String>;
fn fetch_devices(&mut self) -> Result<Vec<VRDevicePtr>, String>;
fn is_available(&self) -> bool;
fn poll_events(&self) -> Vec<VRDisplayEvent>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment