pub struct LayoutTask {Show 14 fields
pub snapshot: Arc<DomSnapshot>,
pub root: NodeId,
pub resolved_styles: Arc<ResolvedStyles>,
pub media_environment: MediaEnvironment,
pub measurer: Arc<dyn TextMeasurer>,
pub system_color_scheme: ColorScheme,
pub scripting_mode: ScriptingMode,
pub images: HashMap<String, Image>,
pub audio: HashMap<String, Arc<[u8]>>,
pub parent: InheritedCss,
pub chain: ElementChain,
pub write_back_sender: Option<DomWriteBack>,
pub styles_version: u64,
pub version: u64,
}Expand description
The complete set of inputs the builder needs to run on the background thread.
Fields§
§snapshot: Arc<DomSnapshot>§root: NodeId§resolved_styles: Arc<ResolvedStyles>§media_environment: MediaEnvironment§measurer: Arc<dyn TextMeasurer>§system_color_scheme: ColorScheme§scripting_mode: ScriptingMode§images: HashMap<String, Image>§audio: HashMap<String, Arc<[u8]>>§parent: InheritedCss§chain: ElementChain§write_back_sender: Option<DomWriteBack>§styles_version: u64Monotonic version of resolved_styles at task creation time. Assigned
by the UI thread; see LayoutProcessor for how it drives the
RuleSet cache.
version: u64Monotonic sequence number used to coalesce stale tasks. Assigned by
LayoutProcessor::send, ignore when constructing a task.
Auto Trait Implementations§
impl !RefUnwindSafe for LayoutTask
impl !UnwindSafe for LayoutTask
impl Freeze for LayoutTask
impl Send for LayoutTask
impl Sync for LayoutTask
impl Unpin for LayoutTask
impl UnsafeUnpin for LayoutTask
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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