pub struct NextjsBootstrapSnapshot {Show 21 fields
pub phase: NextjsBootstrapPhase,
pub environment: NextjsRenderEnvironment,
pub route_segment: String,
pub runtime_initialized: bool,
pub runtime_init_attempts: u32,
pub runtime_init_successes: u32,
pub runtime_failure_count: u32,
pub cancellation_count: u32,
pub hydration_mismatch_count: u32,
pub soft_navigation_count: u32,
pub hard_navigation_count: u32,
pub popstate_navigation_count: u32,
pub cache_revalidation_count: u32,
pub scope_invalidation_count: u32,
pub runtime_reinit_required_count: u32,
pub active_scope_generation: u32,
pub last_invalidated_scope_generation: Option<u32>,
pub hot_reload_count: u32,
pub last_recovery_action: BootstrapRecoveryAction,
pub last_error: Option<String>,
pub phase_history: Vec<NextjsBootstrapPhase>,
}Expand description
Bootstrap state snapshot for diagnostics.
Fields§
§phase: NextjsBootstrapPhaseCurrent bootstrap phase.
environment: NextjsRenderEnvironmentCurrent render environment.
route_segment: StringCurrent route segment.
runtime_initialized: boolWhether runtime init succeeded at least once in this lifecycle.
runtime_init_attempts: u32Number of runtime initialization attempts.
runtime_init_successes: u32Number of successful runtime initialization calls.
runtime_failure_count: u32Number of runtime failures observed.
cancellation_count: u32Number of runtime cancellations observed.
Includes explicit bootstrap cancellations (CancelBootstrap) and
deterministic scope invalidations (cache revalidation, hard navigation,
hot reload) that require draining active runtime work.
hydration_mismatch_count: u32Number of hydration mismatches observed.
Number of soft navigations observed.
Number of hard navigations observed.
Number of popstate navigations observed.
cache_revalidation_count: u32Number of cache revalidation events observed.
scope_invalidation_count: u32Number of runtime scope invalidations triggered by route/cache events.
runtime_reinit_required_count: u32Number of times invalidation required runtime re-initialization.
active_scope_generation: u32Current active runtime scope generation.
Increments on each successful runtime initialization.
last_invalidated_scope_generation: Option<u32>Last invalidated runtime scope generation, if any.
hot_reload_count: u32Number of hot reload events observed.
last_recovery_action: BootstrapRecoveryActionLast recovery action taken.
last_error: Option<String>Last error detail.
phase_history: Vec<NextjsBootstrapPhase>Phase history for deterministic replay.
Trait Implementations§
Source§impl Clone for NextjsBootstrapSnapshot
impl Clone for NextjsBootstrapSnapshot
Source§fn clone(&self) -> NextjsBootstrapSnapshot
fn clone(&self) -> NextjsBootstrapSnapshot
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more