Struct webxr_api::LayerManager
source · pub struct LayerManager(Box<dyn Send + LayerManagerAPI<()>>);
Tuple Fields§
§0: Box<dyn Send + LayerManagerAPI<()>>
Implementations§
source§impl LayerManager
impl LayerManager
pub fn create_layer( &mut self, context_id: ContextId, init: LayerInit, ) -> Result<LayerId, Error>
pub fn destroy_layer(&mut self, context_id: ContextId, layer_id: LayerId)
pub fn begin_frame( &mut self, layers: &[(ContextId, LayerId)], ) -> Result<Vec<SubImages>, Error>
pub fn end_frame( &mut self, layers: &[(ContextId, LayerId)], ) -> Result<(), Error>
source§impl LayerManager
impl LayerManager
pub fn new<M>(manager: M) -> LayerManager
Trait Implementations§
source§impl Debug for LayerManager
impl Debug for LayerManager
Auto Trait Implementations§
impl Freeze for LayerManager
impl !RefUnwindSafe for LayerManager
impl Send for LayerManager
impl !Sync for LayerManager
impl Unpin for LayerManager
impl !UnwindSafe for LayerManager
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