Struct servo::embedder::EmbedderCallbacks
source · [−]pub struct EmbedderCallbacks {
event_loop_waker: Box<dyn EventLoopWaker>,
xr_discovery: Option<GlWindowDiscovery>,
}
Fields
event_loop_waker: Box<dyn EventLoopWaker>
xr_discovery: Option<GlWindowDiscovery>
Implementations
sourceimpl EmbedderCallbacks
impl EmbedderCallbacks
pub fn new(
event_loop_waker: Box<dyn EventLoopWaker>,
xr_discovery: Option<GlWindowDiscovery>
) -> EmbedderCallbacks
Trait Implementations
sourceimpl EmbedderMethods for EmbedderCallbacks
impl EmbedderMethods for EmbedderCallbacks
sourcefn create_event_loop_waker(&mut self) -> Box<dyn EventLoopWaker>
fn create_event_loop_waker(&mut self) -> Box<dyn EventLoopWaker>
Returns a thread-safe object to wake up the window’s event loop.
sourcefn register_webxr(
&mut self,
xr: &mut MainThreadRegistry,
_embedder_proxy: EmbedderProxy
)
fn register_webxr(
&mut self,
xr: &mut MainThreadRegistry,
_embedder_proxy: EmbedderProxy
)
Register services with a WebXR Registry.
sourcefn get_user_agent_string(&self) -> Option<String>
fn get_user_agent_string(&self) -> Option<String>
Returns the user agent string to report in network requests.
Auto Trait Implementations
impl !RefUnwindSafe for EmbedderCallbacks
impl !Send for EmbedderCallbacks
impl !Sync for EmbedderCallbacks
impl Unpin for EmbedderCallbacks
impl !UnwindSafe for EmbedderCallbacks
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
sourcefn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
sourceimpl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
sourcefn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more