pub struct PreCascadeTransfers {
pub image_callbacks: Vec<(usize, CoreImageCallback)>,
pub callbacks: Vec<(usize, CoreCallbackDataVec)>,
pub datasets: Vec<(usize, RefAny)>,
}Expand description
RefAny payloads collected during the fingerprint walk.
Transferred onto the retained DOM when the produce side is skipped. The skip path
keeps last frame’s StyledDom, but callbacks/image callbacks must use the
freshly-created RefAnys (they may reference new app state) — same
transfer regenerate_layout’s equivalence branch has always done, minus
the cascade it used to pay to get here. Indices are flattened NodeIds.
Fields§
§image_callbacks: Vec<(usize, CoreImageCallback)>(flattened NodeId index, fresh image callback) for every
NodeType::Image(DecodedImage::Callback) node.
callbacks: Vec<(usize, CoreCallbackDataVec)>(flattened NodeId index, fresh event callbacks) for every node with
a non-empty callback list.
datasets: Vec<(usize, RefAny)>(flattened NodeId index, fresh dataset) for every node that carries
one. Merged onto the retained DOM by merge_fresh_dataset — the
skip path’s equivalent of transfer_states — so a widget’s state
survives an identical rebuild and its callbacks (installed from
callbacks above) end up on the SAME allocation as its dataset.
Trait Implementations§
Source§impl Clone for PreCascadeTransfers
impl Clone for PreCascadeTransfers
Source§fn clone(&self) -> PreCascadeTransfers
fn clone(&self) -> PreCascadeTransfers
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more