enum ScreenshotRequestState {
Pending,
WaitingOnScript,
}Expand description
When a ScreenshotReadinessRequest is received from the renderer, the Constellation
go through a variety of states to process them. This data structure represents those states.
Variants§
Pending
The Constellation has received the ScreenshotReadinessRequest, but has not yet
forwarded it to the Pipeline’s of the requests’s WebView. This is likely because there
are still pending navigation changes in the Constellation. Once those changes are resolved
the request will be forwarded to the Pipelines.
WaitingOnScript
The Constellation has forwarded the ScreenshotReadinessRequest to the Pipelines of
the corresponding WebView. The Pipelines are waiting for a variety of things to happen in
order to report what appropriate display list epoch is for the screenshot. Once they all report
back, the Constellation considers that the request is handled, and the renderer is responsible
for waiting to take the screenshot.
Trait Implementations§
Source§impl Clone for ScreenshotRequestState
impl Clone for ScreenshotRequestState
Source§fn clone(&self) -> ScreenshotRequestState
fn clone(&self) -> ScreenshotRequestState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ScreenshotRequestState
impl Default for ScreenshotRequestState
Source§fn default() -> ScreenshotRequestState
fn default() -> ScreenshotRequestState
Source§impl PartialEq for ScreenshotRequestState
impl PartialEq for ScreenshotRequestState
impl Copy for ScreenshotRequestState
impl StructuralPartialEq for ScreenshotRequestState
Auto Trait Implementations§
impl Freeze for ScreenshotRequestState
impl RefUnwindSafe for ScreenshotRequestState
impl Send for ScreenshotRequestState
impl Sync for ScreenshotRequestState
impl Unpin for ScreenshotRequestState
impl UnsafeUnpin for ScreenshotRequestState
impl UnwindSafe for ScreenshotRequestState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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