#[non_exhaustive]pub struct RenderCounts {
pub nodes: usize,
pub bytes: usize,
pub list_iterations: usize,
pub walk_time: Duration,
}Expand description
What one render did, for the application’s own logs and metrics.
On a crate::RenderError for a budget or a fault, the same counts say
how far the walk got. For a page served without a walk (a browser
shell, or the deprecated render_page’s fallback) every count is zero.
nodes and list_iterations are counted by crate::try_render; a page
from the deprecated render_page reports them as zero.
The walk time is the number to watch for moving a page off an async
worker: see crate::try_render’s spawn_blocking recipe.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.nodes: usizeElements and text nodes the walk wrote (hydration markers and comments are not nodes).
bytes: usizeBytes of HTML the walk wrote into the page’s root, the quantity the
walker’s output budget (WalkLimits::max_output_bytes) bounds; the
document around it is not counted.
list_iterations: usizeList rows the walk wrote, across every nesting depth, the quantity
WalkLimits::max_list_iterations bounds.
walk_time: DurationTime spent in the walk.