pub struct ReloadReport {
pub applied: usize,
pub unchanged: usize,
pub unknown: usize,
pub escalations: Vec<EscalationReason>,
pub parse_error: Option<String>,
}Expand description
Outcome of reloading one edited file.
Fields§
§applied: usizeSites hot-swapped (shape changed, safe).
unchanged: usizeSites whose shape did not change.
unknown: usizeview! sites with no matching running site — a new view! (new
compiled code) → needs a restart to take effect.
escalations: Vec<EscalationReason>Sites that changed in a way needing compiled code (Tier 2/0).
parse_error: Option<String>The file didn’t parse (mid-edit) — do nothing, wait for the next save.
Implementations§
Source§impl ReloadReport
impl ReloadReport
Sourcepub fn hot_swapped(&self) -> bool
pub fn hot_swapped(&self) -> bool
A safe data reload happened — repaint, don’t restart.
Sourcepub fn needs_restart(&self) -> bool
pub fn needs_restart(&self) -> bool
Something needs compiled code — the watcher should fall back to a Tier 0 rebuild + restart.
Trait Implementations§
Source§impl Clone for ReloadReport
impl Clone for ReloadReport
Source§fn clone(&self) -> ReloadReport
fn clone(&self) -> ReloadReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReloadReport
impl Debug for ReloadReport
Source§impl Default for ReloadReport
impl Default for ReloadReport
Source§fn default() -> ReloadReport
fn default() -> ReloadReport
Returns the “default value” for a type. Read more
Source§impl PartialEq for ReloadReport
impl PartialEq for ReloadReport
impl StructuralPartialEq for ReloadReport
Auto Trait Implementations§
impl Freeze for ReloadReport
impl RefUnwindSafe for ReloadReport
impl Send for ReloadReport
impl Sync for ReloadReport
impl Unpin for ReloadReport
impl UnsafeUnpin for ReloadReport
impl UnwindSafe for ReloadReport
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