pub struct LayoutTask {Show 20 fields
pub snapshot: Arc<DomSnapshot>,
pub root: NodeId,
pub resolved_styles: Arc<ResolvedStyles>,
pub media_environment: MediaEnvironment,
pub measurer: Arc<dyn TextMeasurer>,
pub audio_sinks: Arc<dyn AudioSinkFactory>,
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 dom_version: u64,
pub version: u64,
pub interaction: Arc<InteractionState>,
pub interaction_version: u64,
pub existing_custom_nodes: HashMap<u32, Arc<dyn CustomNode>>,
pub animated_overrides: HashMap<NodeId, HashMap<String, CssValue>>,
}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>§audio_sinks: Arc<dyn AudioSinkFactory>§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.
dom_version: u64Monotonic version of the DOM snapshot handed to the task. Selector match results are only reused across tasks with the same version.
version: u64Monotonic sequence number used to coalesce stale tasks. Assigned by
LayoutProcessor::send, ignore when constructing a task.
interaction: Arc<InteractionState>Pointer interaction state (hover/active) for CSS pseudo-class matching.
interaction_version: u64Monotonic version of interaction; selector match results depend on it.
existing_custom_nodes: HashMap<u32, Arc<dyn CustomNode>>Existing custom node instances keyed by snapshot DOM node id, reused across relayouts to preserve component-local UI state.
animated_overrides: HashMap<NodeId, HashMap<String, CssValue>>Per-element animated style overrides applied on top of cascaded/base styles.
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
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> ⓘ
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