Enum script_traits::LayoutControlMsg
source · pub enum LayoutControlMsg {
ExitNow,
GetCurrentEpoch(IpcSender<Epoch>),
SetScrollStates(Vec<ScrollState>),
GetWebFontLoadState(IpcSender<bool>),
PaintMetric(Epoch, u64),
}
Expand description
Messages sent to the layout thread from the constellation and/or compositor.
Variants§
ExitNow
Requests that this layout thread exit.
GetCurrentEpoch(IpcSender<Epoch>)
Requests the current epoch (layout counter) from this layout.
SetScrollStates(Vec<ScrollState>)
Tells layout about the new scrolling offsets of each scrollable stacking context.
GetWebFontLoadState(IpcSender<bool>)
Requests the current load state of Web fonts. true
is returned if fonts are still loading
and false
is returned if all fonts have loaded.
PaintMetric(Epoch, u64)
Send the paint time for a specific epoch to the layout thread.
Trait Implementations§
source§impl Debug for LayoutControlMsg
impl Debug for LayoutControlMsg
source§impl<'de> Deserialize<'de> for LayoutControlMsg
impl<'de> Deserialize<'de> for LayoutControlMsg
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for LayoutControlMsg
impl Send for LayoutControlMsg
impl !Sync for LayoutControlMsg
impl Unpin for LayoutControlMsg
impl UnwindSafe for LayoutControlMsg
Blanket Implementations§
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> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert