pub enum SwapOutcome {
Applied,
Unchanged,
Escalate(EscalationReason),
UnknownSite,
}Expand description
The result of trying to apply an edited template to the running app.
Variants§
Applied
Safe data edit — the registry entry was replaced; next frame shows it.
Unchanged
The edit didn’t change the shape — nothing to do.
Escalate(EscalationReason)
The edit touched compiled logic — registry left as-is; the caller must escalate (Tier 2 dylib swap or Tier 0 restart).
UnknownSite
No running template for this site key — nothing to swap against (a new
view!, or a key that never registered). Also an escalation.
Trait Implementations§
Source§impl Clone for SwapOutcome
impl Clone for SwapOutcome
Source§fn clone(&self) -> SwapOutcome
fn clone(&self) -> SwapOutcome
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 SwapOutcome
impl Debug for SwapOutcome
impl Eq for SwapOutcome
Source§impl PartialEq for SwapOutcome
impl PartialEq for SwapOutcome
impl StructuralPartialEq for SwapOutcome
Auto Trait Implementations§
impl Freeze for SwapOutcome
impl RefUnwindSafe for SwapOutcome
impl Send for SwapOutcome
impl Sync for SwapOutcome
impl Unpin for SwapOutcome
impl UnsafeUnpin for SwapOutcome
impl UnwindSafe for SwapOutcome
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