pub struct VRServiceManager { /* private fields */ }
Implementations§
Source§impl VRServiceManager
impl VRServiceManager
pub fn new() -> VRServiceManager
pub fn register_defaults(&mut self)
pub fn register_vrexternal(&mut self, _: VRExternalShmemPtr)
pub fn register_mock(&mut self)
pub fn register_mock_with_remote( &mut self, init: MockVRInit, ) -> Sender<MockVRControlMsg>
pub fn register(&mut self, service: Box<dyn VRService>)
pub fn initialize_services(&mut self)
pub fn get_displays(&mut self) -> Vec<VRDisplayPtr> ⓘ
pub fn get_gamepads(&mut self) -> Vec<VRGamepadPtr> ⓘ
pub fn get_display(&self, display_id: u32) -> Option<&VRDisplayPtr>
pub fn poll_events(&mut self) -> Vec<VREvent>
pub fn is_initialized(&self) -> bool
Trait Implementations§
Source§impl Drop for VRServiceManager
impl Drop for VRServiceManager
impl Send for VRServiceManager
Auto Trait Implementations§
impl Freeze for VRServiceManager
impl !RefUnwindSafe for VRServiceManager
impl !Sync for VRServiceManager
impl Unpin for VRServiceManager
impl !UnwindSafe for VRServiceManager
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