[][src]Trait compositing::windowing::EmbedderMethods

pub trait EmbedderMethods {
    fn create_event_loop_waker(&mut self) -> Box<dyn EventLoopWaker>;

    fn register_webxr(
        &mut self,
        _: &mut MainThreadRegistry,
        _: WebGlExecutor,
        _: SurfaceProviders,
        _: EmbedderProxy
    ) { ... }
fn get_user_agent_string(&self) -> Option<String> { ... } }

Required methods

fn create_event_loop_waker(&mut self) -> Box<dyn EventLoopWaker>

Returns a thread-safe object to wake up the window's event loop.

Loading content...

Provided methods

fn register_webxr(
    &mut self,
    _: &mut MainThreadRegistry,
    _: WebGlExecutor,
    _: SurfaceProviders,
    _: EmbedderProxy
)

Register services with a WebXR Registry.

fn get_user_agent_string(&self) -> Option<String>

Returns the user agent string to report in network requests.

Loading content...

Implementors

Loading content...