pub enum HotReloadKind {
Supported,
Experimental,
Unsupported,
}Expand description
How in-process (native) app reload is expected to behave.
Per research.md §R10, native hot-reload is inherently unreliable due to
dlclose semantics. The manifest field sets correct user expectations.
Variants§
Supported
Reload is reliable (Bun subprocess restart). Default for Bun apps.
Experimental
Reload attempted but may fail; expect RequiresRestart on failure.
Default for Native apps (FR-024).
Unsupported
App must be restarted to pick up changes.
Implementations§
Source§impl HotReloadKind
impl HotReloadKind
pub fn default_for(app_type: AppType) -> Self
Trait Implementations§
Source§impl Clone for HotReloadKind
impl Clone for HotReloadKind
Source§fn clone(&self) -> HotReloadKind
fn clone(&self) -> HotReloadKind
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 moreimpl Copy for HotReloadKind
Source§impl Debug for HotReloadKind
impl Debug for HotReloadKind
Source§impl<'de> Deserialize<'de> for HotReloadKind
impl<'de> Deserialize<'de> for HotReloadKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HotReloadKind
Source§impl PartialEq for HotReloadKind
impl PartialEq for HotReloadKind
Source§impl Serialize for HotReloadKind
impl Serialize for HotReloadKind
impl StructuralPartialEq for HotReloadKind
Auto Trait Implementations§
impl Freeze for HotReloadKind
impl RefUnwindSafe for HotReloadKind
impl Send for HotReloadKind
impl Sync for HotReloadKind
impl Unpin for HotReloadKind
impl UnsafeUnpin for HotReloadKind
impl UnwindSafe for HotReloadKind
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