pub struct HotUpdate {
pub name: String,
pub code: String,
pub source_map: Option<Arc<str>>,
}Expand description
A development update that replaces the app’s changed modules in place,
keeping the JS context, the views and the state of everything else
(made by nsh_bundler::HotBundle::patch).
Fields§
§name: StringScript name in stack traces, unique per update (e.g. hot-3.js).
code: StringThe script.
source_map: Option<Arc<str>>Its source map (JSON).
Trait Implementations§
Auto Trait Implementations§
impl Forget for HotUpdate
impl Freeze for HotUpdate
impl Move for HotUpdate
impl RefUnwindSafe for HotUpdate
impl Send for HotUpdate
impl Sync for HotUpdate
impl Unpin for HotUpdate
impl UnsafeUnpin for HotUpdate
impl UnwindSafe for HotUpdate
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