MCPcopy Index your code
hub / github.com/algoscienceacademy/RustUI / rebuild

Method rebuild

src/dev_server.rs:387–406  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

385 }
386
387 pub fn rebuild(&mut self) {
388 let mut status = self.status.lock().unwrap();
389 status.in_progress = true;
390 status.error = None;
391 drop(status);
392
393 let result = match self.target_platform {
394 Platform::Desktop => self.start_desktop_build(),
395 Platform::IOS => self.start_ios_simulator(),
396 Platform::Android => self.start_android_emulator(),
397 Platform::Web => self.start_web_server(),
398 };
399
400 let mut status = self.status.lock().unwrap();
401 status.in_progress = false;
402 status.last_build = Some(Instant::now());
403 if let Err(e) = result {
404 status.error = Some(e.to_string());
405 }
406 }
407
408 fn update_progress(&self, current: u32, total: u32, message: &str) {
409 if let Ok(mut status) = self.status.lock() {

Callers 5

mainFunction · 0.80
runMethod · 0.80
set_platformMethod · 0.80
restartMethod · 0.80
mainFunction · 0.80

Calls 4

start_desktop_buildMethod · 0.80
start_ios_simulatorMethod · 0.80
start_web_serverMethod · 0.80

Tested by

no test coverage detected