pub struct DevSupervisor { /* private fields */ }Implementations§
Source§impl DevSupervisor
impl DevSupervisor
pub fn new(config: DevConfig) -> Self
Sourcepub async fn run(self) -> Result<(), DevError>
pub async fn run(self) -> Result<(), DevError>
Run Rust and Vite together until Ctrl-C, or until Vite exits on its own.
When watch_rust is enabled, Rust source changes restart the backend;
compile/run failures wait for the next change instead of tearing down Vite.
§Errors
Returns an error when a child cannot start, signal registration fails, or the Vite process exits on its own.
Auto Trait Implementations§
impl Freeze for DevSupervisor
impl RefUnwindSafe for DevSupervisor
impl Send for DevSupervisor
impl Sync for DevSupervisor
impl Unpin for DevSupervisor
impl UnsafeUnpin for DevSupervisor
impl UnwindSafe for DevSupervisor
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