pub enum ConstellationToEmbedderMsg {
Show 13 variants
ShutdownComplete,
ReportProfile(Vec<u8>),
WebViewBlurred,
HistoryTraversalComplete(WebViewId, TraversalId),
MediaSessionEvent(WebViewId, MediaSessionEvent),
Panic(WebViewId, String, Option<String>),
WebViewFocused(WebViewId, bool),
InputEventsHandled(WebViewId, Vec<InputEventOutcome>),
WebViewClosed(WebViewId),
FinishJavaScriptEvaluation(JavaScriptEvaluationId, Result<JSValue, JavaScriptEvaluationError>),
AllowOpeningWebView(WebViewId, GenericSender<Option<NewWebViewDetails>>),
AllowNavigationRequest(WebViewId, PipelineId, ServoUrl),
HistoryChanged(WebViewId, Vec<ServoUrl>, usize),
}Expand description
Messages sent from the Constellation to the embedder.
Variants§
ShutdownComplete
Informs the embedder that the constellation has completed shutdown. Required because the constellation can have pending calls to make (e.g. SetFrameTree) at the time that we send it an ExitMsg.
ReportProfile(Vec<u8>)
Report a complete sampled profile
WebViewBlurred
All webviews lost focus for keyboard events.
HistoryTraversalComplete(WebViewId, TraversalId)
A history traversal operation completed.
MediaSessionEvent(WebViewId, MediaSessionEvent)
Notifies the embedder about media session events (i.e. when there is metadata for the active media session, playback state changes…).
Panic(WebViewId, String, Option<String>)
A pipeline panicked. First string is the reason, second one is the backtrace.
WebViewFocused(WebViewId, bool)
A webview potentially gained focus for keyboard events. If the boolean value is false, the webiew could not be focused.
InputEventsHandled(WebViewId, Vec<InputEventOutcome>)
Inform the embedding layer that a particular InputEvent was handled by Servo
and the embedder can continue processing it, if necessary.
WebViewClosed(WebViewId)
A webview was destroyed.
FinishJavaScriptEvaluation(JavaScriptEvaluationId, Result<JSValue, JavaScriptEvaluationError>)
Inform the embedding layer that a JavaScript evaluation has finished with the given result.
AllowOpeningWebView(WebViewId, GenericSender<Option<NewWebViewDetails>>)
Whether or not to allow script to open a new tab/browser
Whether or not to allow a pipeline to load a url.
HistoryChanged(WebViewId, Vec<ServoUrl>, usize)
The history state has changed.
Auto Trait Implementations§
impl Freeze for ConstellationToEmbedderMsg
impl RefUnwindSafe for ConstellationToEmbedderMsg
impl Send for ConstellationToEmbedderMsg
impl Sync for ConstellationToEmbedderMsg
impl Unpin for ConstellationToEmbedderMsg
impl UnsafeUnpin for ConstellationToEmbedderMsg
impl UnwindSafe for ConstellationToEmbedderMsg
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more