Created
November 23, 2016 20:27
-
-
Save MortimerGoro/1774e96596792d741f8bfad8e4607475 to your computer and use it in GitHub Desktop.
VRService traits for blogpost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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