pub struct DevExtension { /* private fields */ }Implementations§
Source§impl DevExtension
impl DevExtension
pub fn detect(cwd: &Path, options: &DevOptions) -> Result<Arc<Self>, String>
pub fn package_name(&self) -> &str
pub fn watch_enabled(&self) -> bool
Sourcepub fn rebuild(&self) -> Result<PathBuf, String>
pub fn rebuild(&self) -> Result<PathBuf, String>
Compile and stage a fresh copy. The current stage changes only after a successful Cargo build and copy, so failed reloads keep the live plugin.
pub fn apply_to_args(&self, args: &mut Args) -> Result<(), String>
Sourcepub fn start_watcher(
self: &Arc<Self>,
mailbox: ReloadMailbox,
) -> Option<JoinHandle<()>>
pub fn start_watcher( self: &Arc<Self>, mailbox: ReloadMailbox, ) -> Option<JoinHandle<()>>
Poll the extension inputs in a background thread. A change signals the existing reload mailbox; the TUI serializes compilation and the plugin swap on its async main loop, so watcher and manual reloads share one path.
pub fn stop_watcher(&self)
pub fn cleanup(&self)
Trait Implementations§
Source§impl Drop for DevExtension
impl Drop for DevExtension
Auto Trait Implementations§
impl !Freeze for DevExtension
impl RefUnwindSafe for DevExtension
impl Send for DevExtension
impl Sync for DevExtension
impl Unpin for DevExtension
impl UnsafeUnpin for DevExtension
impl UnwindSafe for DevExtension
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