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 Forget for DevExtension
impl Move for DevExtension
impl RefUnwindSafe for DevExtensionwhere
Mutex<Option<PathBuf>>: RefUnwindSafe,
Mutex<()>: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
Atomic<bool>: RefUnwindSafe,
impl Send for DevExtension
impl Sync for DevExtension
impl Unpin for DevExtension
impl UnsafeUnpin for DevExtensionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
Align8<u64>: UnsafeUnpin,
impl UnwindSafe for DevExtensionwhere
RawVecInner: UnwindSafe,
Mutex<Option<PathBuf>>: UnwindSafe,
Mutex<()>: UnwindSafe,
Align8<u64>: UnwindSafe,
Align1<u8>: UnwindSafe,
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