Struct webxr::glwindow::GlWindowDiscovery
source · pub struct GlWindowDiscovery {
connection: Connection,
adapter: Adapter,
context_attributes: ContextAttributes,
factory: Box<dyn Fn() -> Result<Box<dyn GlWindow>, ()>>,
}
Fields§
§connection: Connection
§adapter: Adapter
§context_attributes: ContextAttributes
§factory: Box<dyn Fn() -> Result<Box<dyn GlWindow>, ()>>
Implementations§
source§impl GlWindowDiscovery
impl GlWindowDiscovery
pub fn new( connection: Connection, adapter: Adapter, context_attributes: ContextAttributes, factory: Box<dyn Fn() -> Result<Box<dyn GlWindow>, ()>>, ) -> GlWindowDiscovery
Trait Implementations§
source§impl DiscoveryAPI<SurfmanGL> for GlWindowDiscovery
impl DiscoveryAPI<SurfmanGL> for GlWindowDiscovery
fn request_session( &mut self, mode: SessionMode, init: &SessionInit, xr: SessionBuilder<'_, SurfmanGL>, ) -> Result<Session, Error>
fn supports_session(&self, mode: SessionMode) -> bool
Auto Trait Implementations§
impl Freeze for GlWindowDiscovery
impl !RefUnwindSafe for GlWindowDiscovery
impl !Send for GlWindowDiscovery
impl !Sync for GlWindowDiscovery
impl Unpin for GlWindowDiscovery
impl !UnwindSafe for GlWindowDiscovery
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