Struct webxr_api::LayerManagerFactory
source · pub struct LayerManagerFactory<GL: GLTypes>(Box<dyn Send + FnOnce(&mut GL::Device, &mut dyn GLContexts<GL>) -> Result<Box<dyn LayerManagerAPI<GL>>, Error>>);
Tuple Fields§
§0: Box<dyn Send + FnOnce(&mut GL::Device, &mut dyn GLContexts<GL>) -> Result<Box<dyn LayerManagerAPI<GL>>, Error>>
Implementations§
source§impl<GL: GLTypes> LayerManagerFactory<GL>
impl<GL: GLTypes> LayerManagerFactory<GL>
pub fn new<F, M>(factory: F) -> LayerManagerFactory<GL>where
F: 'static + Send + FnOnce(&mut GL::Device, &mut dyn GLContexts<GL>) -> Result<M, Error>,
M: 'static + LayerManagerAPI<GL>,
pub fn build( self, device: &mut GL::Device, contexts: &mut dyn GLContexts<GL>, ) -> Result<Box<dyn LayerManagerAPI<GL>>, Error>
Trait Implementations§
Auto Trait Implementations§
impl<GL> Freeze for LayerManagerFactory<GL>
impl<GL> !RefUnwindSafe for LayerManagerFactory<GL>
impl<GL> Send for LayerManagerFactory<GL>
impl<GL> !Sync for LayerManagerFactory<GL>
impl<GL> Unpin for LayerManagerFactory<GL>
impl<GL> !UnwindSafe for LayerManagerFactory<GL>
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